CreateBlendTreeChild
Utility function to add a child blend tree to a blend tree.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Method
- Namespace: UnityEditor.Animations
- Assembly: UnityEditor.CoreModule
CreateBlendTreeChild(float)
Utility function to add a child blend tree to a blend tree.
public BlendTree CreateBlendTreeChild(float threshold)
Parameters
The threshold of the child. When using 1D blend trees.
Returns
Type | Description |
|---|---|
| BlendTree |
Remarks
The blend tree asset that is created is added as a sub asset of the blend tree. This function pushes an Undo operation.
CreateBlendTreeChild(Vector2)
Utility function to add a child blend tree to a blend tree.
public BlendTree CreateBlendTreeChild(Vector2 position)
Parameters
The position of the child. When using 2D blend trees.
Returns
Type | Description |
|---|---|
| BlendTree |
Remarks
The blend tree asset that is created is added as a sub asset of the blend tree. This function pushes an Undo operation.