• Unity
  • 咨询“skeletonAnimation.AnimationState.Event”的事件机制

如图,我的spine动画的动作"attack_1"包含3个事件帧"attack",我如果播放完整动画,会回调3次。
但是如果我通过anim.AnimationStart=1.0f; anim.AnimationEnd =1.6f;的方式从中间播放到末尾,也会回调3次。
请问有什么办法只回调1次吗?

非常感谢!

Related Discussions
...
  • Изменено

是的,您可以将 TrackEntry.AnimationLast 设置为您的开始时间,以不从头开始播放所有事件。
TrackEntry animationLast


Yes, you can set TrackEntry.AnimationLast to your start time to not play all events from the beginning.
TrackEntry animationLast

Thankyou very much!

You're welcome, glad it helped! 🙂