• Editor
  • Unity Animation Events in Spine

Hello. I'm working with my team on a 2d platform game.
We are considering to change from unity animations to spine 2d. Our only doubt is about unity animation events. Lot of our logic, at least in combat animations, is based on the fact that i can call functions during the animation at the exact frame i want them to behave. How to achieve the same in Spine 2d?

Thank you very much for your time.

  • Misaki님이 이에 답장했습니다.
    Related Discussions
    ...

    In case it couldn't be possible, how can I get around the problem?

    ErDev Hi, welcome to the Spine forum!

    You can set event keys in the Spine editor: http://esotericsoftware.com/spine-keys#Events
    Then, you can add delegates for the the event via C# code in Unity: http://esotericsoftware.com/spine-unity#Processing-AnimationState-Events

    From 06:54 in the following video demonstrates how to react to the event:

    I hope this will help you.

    • ErDev님이 이에 답장했습니다.
    • ErDev 님이 이 게시물을 좋아합니다..

      Misaki

      That's exactly what I needed. I read about events but misunderstood their potential. Thank you

      • Misaki 님이 이 게시물을 좋아합니다..