文档

Unity Engine


User Manual

Script Reference

Unity Engine


AddChild

Utility function to add a child motion to a blend trees.
阅读时间1 分钟最后更新于 1 个月前

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.