2.3 KiB
2.3 KiB
| name | description | metadata | ||
|---|---|---|---|---|
| animation-get-data | Inspect a Unity `AnimationClip` asset — name, length, frame rate, wrap mode, looping/legacy/humanMotion flags, local bounds, and the full set of float curves, object-reference curves, and events. Pair with 'animation-modify' to write changes back. |
|
Animation / Get Data
Inspect a Unity AnimationClip asset. Returns the high-level clip metadata plus the complete set of float curve bindings, object-reference curve bindings, and animation events. Pair with 'animation-modify' to write changes back.
Inputs
animRef— reference to theAnimationClipasset (path must start withAssets/and end with.anim).
Returned fields
name,length,frameRate,wrapMode,isLooping,hasGenericRootTransform,hasMotionCurves,hasMotionFloatCurves,hasRootCurves,humanMotion,legacy,localBounds,empty.curveBindings— float curve bindings (path,propertyName,type,isPPtrCurve,isDiscreteCurve,keyframeCount).objectReferenceBindings— object-reference curve bindings (same shape ascurveBindings).events— animation events (time,functionName,intParameter,floatParameter,stringParameter).
How to Call
unity-mcp-cli run-tool animation-get-data --input '{
"animRef": "string_value"
}'
For complex input (multi-line strings, code), save the JSON to a file and use:
unity-mcp-cli run-tool animation-get-data --input-file args.jsonOr pipe via stdin (recommended):
unity-mcp-cli run-tool animation-get-data --input-file - <<'EOF' {"param": "value"} EOF
Troubleshooting
If unity-mcp-cli is not found, either install it globally (npm install -g unity-mcp-cli) or use npx unity-mcp-cli instead.
Read the /unity-initial-setup skill for detailed installation instructions.
Input
| Name | Type | Required | Description |
|---|---|---|---|
animRef |
string |
Yes | Reference to the animation asset. The path should start with 'Assets/' and end with '.anim'. RQL: AssetObjectRef |
Input JSON Schema
{
"type": "object",
"properties": {
"animRef": {
"type": "string"
}
},
"required": [
"animRef"
]
}
Output
This tool does not return structured output.