Modify Unity AnimatorController

VerifiedSafe

Apply a batch of modifications to a Unity AnimatorController: parameters, layers, states, transitions, and speeds.

Sby Skills Guide Bot
DevelopmentIntermediate
8/29/2026
Claude CodeCursorWindsurf
#unity#animator#animation#asset-modification#mcp

Recommended for

Automated summary

Applies batch modifications to a Unity AnimatorController asset (parameters, layers, states, transitions) via the unity-mcp-cli tool.

Strengths

  • Supports many modification types (parameters, layers, states, transitions, speeds).
  • Per-modification errors are accumulated without aborting the whole batch.
  • The asset is marked dirty and saved automatically after modifications.

Limitations

  • Requires running animator-get-data first to discover valid names.
  • Only works with AnimatorController assets and existing AnimationClips.
  • Requires the unity-mcp-cli to be installed.
When to use it

When you need to programmatically restructure or tune a Unity animator controller in an MCP-driven workflow.

When not to use it

For quick one-off manual edits in the Unity editor GUI, or when the animator data is unknown.

Security analysis

Safe
Quality score88/100

The skill instructs using a Unity-specific CLI tool to modify AnimatorController assets. It does not contain destructive shell commands, exfiltration, obfuscation, or disabling of safety features. The bash commands shown are limited to invoking the unity-mcp-cli tool with JSON input.

No concerns found

How this analysis is made

Examples

Add parameter
Add a float parameter 'Speed' to the AnimatorController at Assets/Animators/Player.controller
Remove layer
Remove the layer named 'Aim' from the animator controller Assets/Animators/Player.controller
Set default state and speed
In Assets/Animators/Player.controller, set the default state of layer 0 to 'Idle' and set the speed of state 'Run' to 1.5

name: animator-modify description: Apply a batch of modifications to a Unity AnimatorController — add/remove parameters, layers, states, and transitions; set default states; set state motion/speed. Use 'animator-get-data' first to discover valid names.

Animator / Modify

Apply a batch of modifications to a Unity AnimatorController asset. Each modification is dispatched by its AnimatorModificationType discriminator. Use 'animator-get-data' first to discover valid names so the diff is targeted.

Inputs

  • animatorRef — reference to the AnimatorController asset (path must start with Assets/ and end with .controller).
  • modifications — array of AnimatorModification entries.

Supported modification types

  • AddParameter / RemoveParameter — manage controller parameters (float, int, bool, trigger).
  • AddLayer / RemoveLayer — manage animator layers.
  • AddState / RemoveState — manage states inside a specific layer.
  • SetDefaultState — pick the default state for a layer.
  • AddTransition / RemoveTransition — manage state-to-state transitions.
  • AddAnyStateTransition — add a transition from Any State.
  • SetStateMotion — assign an AnimationClip as a state's motion.
  • SetStateSpeed — set a state's speed multiplier.

Behavior

Per-modification errors are accumulated in the response's errors array instead of aborting the whole batch. The controller asset is marked dirty and saved after the modifications complete.

How to Call

unity-mcp-cli run-tool animator-modify --input '{
  "animatorRef": "string_value",
  "modifications": "string_value"
}'

For complex input (multi-line strings, code), save the JSON to a file and use:

unity-mcp-cli run-tool animator-modify --input-file args.json

Or pipe via stdin (recommended):

unity-mcp-cli run-tool animator-modify --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 | |------|------|----------|-------------| | animatorRef | any | Yes | Reference to the AnimatorController asset to modify. | | modifications | any | Yes | Array of modifications to apply to the controller. |

Input JSON Schema

{
  "type": "object",
  "properties": {
    "animatorRef": {
      "$ref": "#/$defs/AIGD.AssetObjectRef"
    },
    "modifications": {
      "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Animation.AnimatorModification-1"
    }
  },
  "$defs": {
    "System.Type": {
      "type": "string"
    },
    "AIGD.AssetObjectRef": {
      "type": "object",
      "properties": {
        "instanceID": {
          "type": "integer",
          "description": "instanceID of the UnityEngine.Object. If this is '0' and 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'."
        },
        "assetType": {
          "$ref": "#/$defs/System.Type",
          "description": "Type of the asset."
        },
        "assetPath": {
          "type": "string",
          "description": "Path to the asset within the project. Starts with 'Assets/'"
        },
        "assetGuid": {
          "type": "string",
          "description": "Unique identifier for the asset."
        }
      },
      "required": [
        "instanceID"
      ],
      "description": "Reference to UnityEngine.Object asset instance. It could be Material, ScriptableObject, Prefab, and any other Asset. Anything located in the Assets and Packages folders."
    },
    "com.IvanMurzak.Unity.MCP.Animation.AnimatorModification": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "AddParameter",
            "RemoveParameter",
            "AddLayer",
            "RemoveLayer",
            "AddState",
            "RemoveState",
            "SetDefaultState",
            "AddTransition",
            "RemoveTransition",
            "AddAnyStateTransition",
            "SetStateMotion",
            "SetStateSpeed"
          ],
          "description": "Modification type. Properties below are used conditionally based on this value."
        },
        "parameterName": {
          "type": "string",
          "description": "Parameter name. Required for: AddParameter, RemoveParameter."
        },
        "parameterType": {
          "type": "string",
          "description": "Parameter type: Float, Int, Bool, Trigger. Required for: AddParameter."
        },
        "defaultFloat": {
          "type": "number",
          "description": "Default float value. Optional for: AddParameter (Float type)."
        },
        "defaultInt": {
          "type": "integer",
          "description": "Default int value. Optional for: AddParameter (Int type)."
        },
        "defaultBool": {
          "type": "boolean",
          "description": "Default bool value. Optional for: AddParameter (Bool type)."
        },
        "layerName": {
          "type": "string",
          "description": "Layer name. Required for: AddLayer, RemoveLayer, AddState, RemoveState, SetDefaultState, AddTransition, RemoveTransition, AddAnyStateTransition, SetStateMotion, SetStateSpeed."
        },
        "stateName": {
          "type": "string",
          "description": "State name. Required for: AddState, RemoveState, SetDefaultState, SetStateMotion, SetStateSpeed."
        },
        "motionAssetPath": {
          "type": "string",
          "description": "Asset path to AnimationClip. Optional for: AddState. Required for: SetStateMotion."
        },
        "speed": {
          "type": "number",
          "description": "Speed multiplier. Required for: SetStateSpeed."
        },
        "sourceStateName": {
          "type": "string",
          "description": "Source state name. Required for: AddTransition, RemoveTransition."
        },
        "destinationStateName": {
          "type": "string",
          "description": "Destination state name. Required for: AddTransition, RemoveTransition, AddAnyStateTransition."
        },
        "hasExitTime": {
          "type": "boolean",
          "description": "Whether transition waits for exit time. Optional for: AddTransition, AddAnyStateTransition."
        },
        "exitTime": {
          "type": "number",
          "description": "Normalized exit time (0-1). Optional for: AddTransition, AddAnyStateTransition."
        },
        "duration": {
          "type": "number",
          "description": "Transition blend duration. Optional for: AddTransition, AddAnyStateTransition."
        },
        "hasFixedDuration": {
          "type": "boolean",
          "description": "Whether duration is in seconds (true) or normalized (false). Optional for: AddTransition, AddAnyStateTransition."
        },
        "conditions": {
          "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Animation.AnimatorConditionData-1",
          "description": "Transition conditions. Optional for: AddTransition, AddAnyStateTransition."
        }
      },
      "required": [
        "type"
      ]
    },
    "com.IvanMurzak.Unity.MCP.Animation.AnimatorConditionData-1": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Animation.AnimatorConditionData"
      }
    },
    "com.IvanMurzak.Unity.MCP.Animation.AnimatorConditionData": {
      "type": "object",
      "properties": {
        "parameter": {
          "type": "string",
          "description": "Parameter name for the condition."
        },
        "mode": {
          "type": "string",
          "description": "Condition mode: If, IfNot, Greater, Less, Equals, NotEqual."
        },
        "threshold": {
          "type": "number",
          "description": "Threshold value for the condition."
        }
      }
    },
    "com.IvanMurzak.Unity.MCP.Animation.AnimatorModification-1": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Animation.AnimatorModification"
      }
    }
  },
  "required": [
    "animatorRef",
    "modifications"
  ]
}

Output

Output JSON Schema

{
  "type": "object",
  "properties": {
    "result": {
      "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Animation.AnimatorTools-ModifyAnimatorResponse"
    }
  },
  "$defs": {
    "com.IvanMurzak.Unity.MCP.Animation.ModifyAnimatorInfo": {
      "type": "object",
      "properties": {
        "path": {
          "type": "string"
        },
        "instanceId": {
          "type": "integer"
        },
        "name": {
          "type": "string"
        }
      },
      "required": [
        "instanceId"
      ]
    },
    "System.Collections.Generic.List(System.String)": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "com.IvanMurzak.Unity.MCP.Animation.AnimatorTools-ModifyAnimatorResponse": {
      "type": "object",
      "properties": {
        "modifiedAsset": {
          "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Animation.ModifyAnimatorInfo"
        },
        "errors": {
          "$ref": "#/$defs/System.Collections.Generic.List(System.String)"
        }
      }
    }
  },
  "required": [
    "result"
  ]
}

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/modify-unity-animatorcontroller-mte1lh3e/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/modify-unity-animatorcontroller-mte1lh3e' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/modify-unity-animatorcontroller-mte1lh3e/download' --output '.skill-downloads/modify-unity-animatorcontroller-mte1lh3e/SKILL.md.part' && mv '.skill-downloads/modify-unity-animatorcontroller-mte1lh3e/SKILL.md.part' '.skill-downloads/modify-unity-animatorcontroller-mte1lh3e/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/modify-unity-animatorcontroller-mte1lh3e/SKILL.md' && test -s '.skill-downloads/modify-unity-animatorcontroller-mte1lh3e/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/animator-modify' && cp -R '.skill-downloads/modify-unity-animatorcontroller-mte1lh3e' '.claude/skills/animator-modify'

Cursor
test -f '.skill-downloads/modify-unity-animatorcontroller-mte1lh3e/SKILL.md' && test -s '.skill-downloads/modify-unity-animatorcontroller-mte1lh3e/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/animator-modify' && cp -R '.skill-downloads/modify-unity-animatorcontroller-mte1lh3e' '.cursor/skills/animator-modify'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/modify-unity-animatorcontroller-mte1lh3e'

openskills read 'modify-unity-animatorcontroller-mte1lh3e'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/modify-unity-animatorcontroller-mte1lh3e/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills