How to use PlayableDirector.timeUpdateMode to reverse time?

I was reading about PlayableDirector.timeUpdateMode that is possible to use manual mode using the tick function so I want to know more about the tick function because on documentation we don’t have much about. And use it to create a reverse mode to play timeline. Like creating a mode to reverse player.

When using the manual mode on the PlayableDirector, you can trigger an update by setting the director to the desired time (by setting the time property) and then by triggering an evalutation (director.Evaluate()).

On each frame, you can calculate a new time with the help of the Time.deltaTime property. This will let you implement a reverse mode. You can also check this post, where I coded a playable that plays a timeline backwards.

3 Likes

thank’s!

What’s the generic way to just play a timeline backwards if you don’t want manual evaluations or to put code in Update() etc? Basically make it as clean as playing it forwards?

Unless I’m missing something it looks like the answer is to create duplicate animation clips that go backwards and use those instead. Seems like there is a big perf hit to negative time deltas for playables.