Search Unity

Bug playable.SetTime(0) does nothing

Discussion in 'Timeline' started by INeatFreak, Jun 20, 2022.

  1. INeatFreak

    INeatFreak

    Joined:
    Sep 12, 2018
    Posts:
    46
    Setting director time though playable reference provided at ProcessFrame method on a script that derives from PlayableBehaviour class doesn't work for some reason. I've found an fix by getting access to the director

    director = (playable.GetGraph().GetResolver() as PlayableDirector)
    director.time = 1

    but I'm sure this is not how it was intended to be done.

    I'm using version 2020.3.1f0 and Timeline 1.6.3 package.