BlendTree

class in UnityEditor.Animations

切换到手册

描述

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

变量

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

公共函数

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