A Unity ID allows you to buy and/or subscribe to Unity products and services, shop in the Asset Store and participate
in the Unity community.
Separate names with a comma.
Discussion in 'Timeline' started by ghzhouskr, Feb 19, 2019.
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?
The RebuildGraph call is only there if the graph is not yet playing. If it is already playing, there is no need for it.