public void OnStateMachineExit (Animator animator, int stateMachinePathHash);

Parameters

animator播放此状态机的 Animator。
stateMachinePathHash此状态机的完整路径哈希。

Description

当转出 StateMachine 时,在最后一个 Update 帧上进行调用。当过渡到 StateMachine 子状态时,不进行调用。

The evaluation flow must pass through an Entry node to call this method. Adding this callback prevents the multithreaded state machine evaluation because a script method needs to be called during the state machine evaluation. This method is called while the state machine is being evaluated which is a different execution order compared to most StateMachineBehaviour methods.