chore: import upstream snapshot with attribution
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"label": "animation",
|
||||
"link": {
|
||||
"type": "doc",
|
||||
"id": "reference/tools/animation/index"
|
||||
},
|
||||
"collapsed": true
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
---
|
||||
title: "animation tools"
|
||||
sidebar_label: "animation"
|
||||
description: "MCP for Unity tools in the animation group."
|
||||
---
|
||||
|
||||
# `animation` tools
|
||||
|
||||
Animator control & AnimationClip creation
|
||||
|
||||
- **[`manage_animation`](./manage_animation.md)** — Manage Unity animation: Animator control and AnimationClip creation.
|
||||
@@ -0,0 +1,37 @@
|
||||
---
|
||||
title: manage_animation
|
||||
sidebar_label: manage_animation
|
||||
description: "Manage Unity animation: Animator control and AnimationClip creation."
|
||||
---
|
||||
|
||||
# `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
|
||||
|
||||
| Name | Type | Required | Description |
|
||||
|------|------|----------|-------------|
|
||||
| `action` | `str` | yes | Action to perform (prefix: animator_, controller_, clip_). |
|
||||
| `target` | `str \| None` | — | Target GameObject (name/path/id). |
|
||||
| `search_method` | `Literal['by_id', 'by_name', 'by_path', 'by_tag', 'by_layer'] \| None` | — | How to find the target GameObject. |
|
||||
| `clip_path` | `str \| None` | — | Asset path for AnimationClip (e.g. 'Assets/Animations/Walk.anim'). |
|
||||
| `controller_path` | `str \| None` | — | Asset path for AnimatorController (e.g. 'Assets/Animators/Player.controller'). |
|
||||
| `properties` | `dict[str, Any] \| str \| None` | — | Action-specific parameters (dict or JSON string). |
|
||||
|
||||
## Returns
|
||||
|
||||
A `dict` containing the Unity response. The exact shape depends on the action.
|
||||
|
||||
## Examples
|
||||
|
||||
<!-- examples:start -->
|
||||
*No examples yet. Add usage examples here — they will be preserved across regenerations.*
|
||||
<!-- examples:end -->
|
||||
|
||||
Reference in New Issue
Block a user