Search Unity

Question How to change speed of custom playable?

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

  1. XyeCkr

    XyeCkr

    Joined:
    Apr 21, 2018
    Posts:
    3
    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?