• 中文
  • Spine事件的Api问题

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

Unity官方运行库4.0,请教一下,我通过自定义事件,成功触发了事件。
通过代码访问其中Event.Data.Name是事件名,Event.String对应Spine里设置好的字符串。这些都没有问题。
但是我看见Event.Data里还有个String字段,这是什么东西?(这个无论我在Spine里设置什么,它好像都是""值。)

你是指 EventData audioPath 吗?顺便说一下,你可以在这里找到关于EventData的细节。:
Are you referring to EventData audioPath ? By the way, you can find the details about EventData here:
EventData

Event.Data.String 包含您在设置模式下为事件分配的 String 值,而不是在 Animate 模式下动画时间轴中的事件键。 这个值将很少被使用,因为您通常使用“Event.Data.Name”来检测它是哪个事件。
Event.Data.String contains the String value that you assigned at the event in Setup mode, not at an event key in the animation timeline in Animate mode. This value will rather rarely be used, since you typically use Event.Data.Name instead to detect which event it is.