Trigger a timeline from the state machine?

Hey folks,

I’m using the animator controller state machine and have conditions with boolean parameters to transition between states. The states have an animation clip assigned to them. Rather than trigger an animation clip though, it would be much simpler if they triggered one of the new timelines that has multiple animation clips. Is this possible? I saw posts from 2017 that said this was coming in 2018. Currently running 2018.3

Thanks

No, it’s not possible to use timelines directly in state machines yet. To play a timeline from a state machine requires scripting.

1 Like

Ok, thanks. Is the best practice for doing that to add a statemachinebehavior and start the timeline in OnStateEnter event?

I believe that would work just fine.

1 Like