AnimatorTransition

class in UnityEditor.Animations

/

Inherits from:Animations.AnimatorTransitionBase

Switch to Manual

Description

过渡定义了状态机在何时以何种方式从一种状态切换为另一种状态。AnimatorTransition 始终源自 StateMachine 或 StateMachine 入口。它们不定义计时参数。

当所有过渡条件都满足时,过渡就会发生。

Constructors

AnimatorTransition创建新的 Animator 过渡。

Inherited members

Variables

conditions过渡发生需要满足的 AnimatorCondition 条件。
destinationState过渡的目标状态。
destinationStateMachine过渡的目标状态机。
isExit作为当前状态机退出的过渡目标。
mute关闭过渡。过渡永远不会发生。
solo关闭源状态的所有其他过渡。
hideFlagsShould the object be hidden, saved with the Scene or modifiable by the user?
name对象的名称。

Public Functions

AddConditionUtility 函数,用于添加一个过渡条件。
RemoveConditionUtility 函数,用于删除过渡条件。
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 ==比较两个对象引用,判断它们是否引用同一个对象。