Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


AddChild

Utility function to add a child motion to a blend trees.
Read time 1 minuteLast updated 11 days ago

Definition

AddChild(Motion)

Utility function to add a child motion to a blend trees.
public void AddChild(Motion motion)

Parameters

motion

The motion to add as child.

Remarks

This function pushes an Undo operation.

AddChild(Motion, Vector2)

Utility function to add a child motion to a blend trees.
public void AddChild(Motion motion, Vector2 position)

Parameters

motion

The motion to add as child.

position

The position of the child. When using 2D blend trees.

Remarks

This function pushes an Undo operation.

AddChild(Motion, float)

Utility function to add a child motion to a blend trees.
public void AddChild(Motion motion, float threshold)

Parameters

motion

The motion to add as child.

threshold

The threshold of the child. When using 1D blend trees.

Remarks

This function pushes an Undo operation.