How to Modify PlaySpeed of TimeLine?

As Titile

        void PlayAtSpeed(PlayableDirector playableDirector, float speed)
            playableDirector.RebuildGraph(); // the graph must be created before getting the playable graph

I attempted this in my project with less than favorable results. I am using Timeline to control cutscenes in my game. I have a fast forward button that is intended to speed the playback of the specified timeline. Including that “RebuildGraph” call caused the timeline to behave oddly if it is already playing. I pulled the line and it works as expected. Do you think this could be problematic for me or is it safe to set the speed without that function?

1 Like

The RebuildGraph call is only there if the graph is not yet playing. If it is already playing, there is no need for it.