CreateBlendTreeInController
Creates a BlendTree in a new AnimatorState.
Read time 1 minuteLast updated 11 days ago
Definition
- Type: Method
- Namespace: UnityEditor.Animations
- Assembly: UnityEditor.CoreModule
CreateBlendTreeInController(string, BlendTree)
Creates a BlendTree in a new AnimatorState.
public AnimatorState CreateBlendTreeInController(string name, out BlendTree tree)
Parameters
Returns
Type | Description |
|---|---|
| AnimatorState |
Remarks
The BlendTree will be a sub asset of the AnimatorController. This function pushes an Undo operation.
CreateBlendTreeInController(string, BlendTree, int)
Creates a BlendTree in a new AnimatorState.
public AnimatorState CreateBlendTreeInController(string name, out BlendTree tree, int layerIndex)
Parameters
Returns
Type | Description |
|---|---|
| AnimatorState |
Remarks
The BlendTree will be a sub asset of the AnimatorController. This function pushes an Undo operation.