Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question How to change speed of custom playable?

Discussion in 'Timeline' started by XyeCkr, Dec 7, 2022.

  1. XyeCkr


    Apr 21, 2018
    Hi all, I'm using Timeline for building abilities using custom Playable Tracks in my game. I need to be able to set the playback speed to change the attack speed.

    Currently I'm using
    Code (CSharp):
    1. parent.GetComponent<PlayableDirector>().playableGraph.GetRootPlayable(0).SetSpeed(newSpeed);
    ...But it's not doing anything.
    I really need to be able to do this. Is there a workaround?