Tips and tricks for using PlayableDirector in Manual update mode

I tried using the snippet

playableDirector.time += yourDeltaTime
playableDirector.Evaluate()

and while seemingly working, it made all my FrameData.deltaTime equal to 0
(The info that is passed to PlayableBehaviour.ProcessFrame()).

So instead, i used what was proposed here and used
playableDirector.playableGraph.Evaluate(deltaTime); instead, which solved my issue.

An additional thing to keep in mind is discussed here :
Manually evaluating the graph is more like a scrub then a playback, so notifications and audiotracks are not working

1 Like