LanguageEnglish
  • C#

StateMachineBehaviour.OnStateUpdate(Animator animator, AnimatorStateInfo animatorStateInfo, int layerIndex)

Parameters

animator The Animator evaluating this state machine.
animatorStateInfo Information about the state being evaluated.
layerIndex The current layer being evaluated.

Description

Invoked on each update frame except for the first and last frame. Implement this message to execute custom logic on a state by state basis.

OnStateUpdate is invoked every frame for the currently evaluated state, as well the next state and the interrupted state if applicable.
Note: OnStateUpdate may be invoked multiple times on the same state if that state is synchronized on multiple layers.


对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961