Does it support animation events?

I need to get a callback when an animation finishes playing, how should I do it?

Original Post on Discord

by user 470548424815542272

Hi, what component are you using for playing an animation?

With vanilla threejs you can use the threejs events (three.js docs)

With the Unity animator component you can create a Statemachinebehaviour (you need to have a typescript class with the same name as your C# class) and use OnStateExit

With timeline we support marker tracks/signal assets that you can use to call other methods on any other component in your scene at specific times

With the basic Animation component you could access the AnimationClips it uses internally and subscribe to the threejs events, I need to check that later tho

I use Unity Animator, thank you for your reply, it solved my problem perfectly.

by user 470548424815542272