Version: 2022.3

AnimatorStateMachine.AddStateMachineTransition

切换到手册
public Animations.AnimatorTransition AddStateMachineTransition (Animations.AnimatorStateMachine sourceStateMachine);
public Animations.AnimatorTransition AddStateMachineTransition (Animations.AnimatorStateMachine sourceStateMachine, Animations.AnimatorStateMachine destinationStateMachine);
public Animations.AnimatorTransition AddStateMachineTransition (Animations.AnimatorStateMachine sourceStateMachine, Animations.AnimatorState destinationState);

参数

sourceStateMachine 源状态机。
destinationStateMachine 目标状态机。
destinationState 目标状态。

返回

AnimatorTransition 所创建的 AnimatorTransition 过渡。

描述

Utility 函数,用于从源状态机向目标添加一个转出过渡。

所创建的过渡资源添加为该状态的子资源。
AnimatorController 页上有如何使用该 API 的示例。