Skip to main content

manage_animation

Auto-generated from the Python tool registry. Do not hand-edit outside <!-- examples:start --><!-- examples:end --> blocks — the generator (tools/generate_docs_reference.py) will overwrite them.

Group: animation  ·  Module: services.tools.manage_animation

Description

Manage Unity animation: Animator control and AnimationClip creation. Action prefixes: animator_* (play, crossfade, set parameters, get info), controller_* (create AnimatorControllers, add states/transitions/parameters), clip_* (create clips, add keyframe curves, assign to GameObjects). Action-specific parameters go in properties (keys match ManageAnimation.cs).

Parameters

NameTypeRequiredDescription
actionstryesAction to perform (prefix: animator_, controller_, clip_).
targetstr | NoneTarget GameObject (name/path/id).
search_methodLiteral['by_id', 'by_name', 'by_path', 'by_tag', 'by_layer'] | NoneHow to find the target GameObject.
clip_pathstr | NoneAsset path for AnimationClip (e.g. 'Assets/Animations/Walk.anim').
controller_pathstr | NoneAsset path for AnimatorController (e.g. 'Assets/Animators/Player.controller').
propertiesdict[str, Any] | str | NoneAction-specific parameters (dict or JSON string).

Returns

A dict containing the Unity response. The exact shape depends on the action.

Examples

No examples yet. Add usage examples here — they will be preserved across regenerations.