AnimatorStateMachine.AddStateMachineTransition

Switch to Manual
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);

Parameters

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

Returns

AnimatorTransition 所创建的 AnimatorTransition 过渡。

Description

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

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