想要在unity里面获取到spine动画身上的这个关键帧所处于动画线上的第几帧或者时间点
如何在unity里获取动画身上关键帧位于的时间点是哪里
- Modifié
你是否在寻找一种方法来获取事件键被触发的时间?如果是这样,你可以在文档的这一部分找到示例代码。
spine-unity 运行时文档: 处理AnimationStates事件
Are you looking for a way to get the timing of when an event key is fired? If so, you can find sample code in this section of the documentation:
spine-unity 运行时文档: 处理AnimationStates事件
并不是spine内置的事件,这个事件是在导出spine资源之前设置好的关键帧,在导入unity之后我想要获取到这个关键帧在动画时间轴的那一帧
让我确认一下你最后想做什么。事件键可以用来定义产生粒子等效果的时机,播放声音,或在该时机调用一些其他进程,但你想用这个键做什么?
Let me confirm what you finally want to do. Event keys can be used to define the timing that generates effects such as particles, play sounds, or invoke some other process at that timing, but what do you want to do with the key?
一个循环的动画,在第一遍播放是按照完整的动画时间轴去播放,从第二遍开始,动画的起点是上文图中关键帧所处的位置
很感谢你的恢复,已经解决了这个问题