BlendTree

class in UnityEditor.Animations

/

Inherits from:Motion

Switch to Manual

Description

混合树用于在动画子级之间连续混合动画。混合树可以是 1D,也可以是 2D。

Variables

blendParameter用于计算 1D 混合树中或 2D 混合树 X 轴上的子级的混合权重的参数。
blendParameterY用于计算 2D 混合树中 Y 轴上的子级的混合权重的参数。
blendType混合类型可以是 1D,也可以是不同类型的 2D。
children一个混合树子运动列表副本。
maxThreshold设置 ChildMotion 将使用的最大阈值。仅当 useAutomaticThresholds 为 true 时使用。
minThreshold设置 ChildMotion 将使用的最小阈值。仅当 useAutomaticThresholds 为 true 时使用。
useAutomaticThresholds生效时,子级的阈值会自动分散在 0 和 1 之间。

Public Functions

AddChildUtility 函数,用于向混合树添加一个子运动。
CreateBlendTreeChildUtility 函数,用于向混合树添加一个子混合树。
RemoveChildUtility 函数,用于删除混合树的子级。

Inherited members

Variables

hideFlagsShould the object be hidden, saved with the Scene or modifiable by the user?
name对象的名称。

Public Functions

GetInstanceID返回对象的实例 ID。
ToString返回 GameObject 的名称。

Static Functions

Destroy删除 GameObject、组件或资源。
DestroyImmediate立即销毁对象 /obj/。强烈建议您改用 Destroy。
DontDestroyOnLoadDo not destroy the target Object when loading a new Scene.
FindObjectOfType返回第一个类型为 type 的已加载的激活对象。
FindObjectsOfType返回所有类型为 type 的已加载的激活对象的列表。
Instantiate克隆 original 对象并返回克隆对象。

Operators

bool该对象是否存在?
operator !=比较两个对象是否引用不同的对象。
operator ==比较两个对象引用,判断它们是否引用同一个对象。