Search Unity

Replaying a Timeline

Discussion in 'Timeline' started by rushk1, Jan 1, 2019.

  1. rushk1

    rushk1

    Joined:
    Sep 24, 2017
    Posts:
    39
    I'm using PlayableDirector.Play to Replay a Timeline . It was working as expected with Track Offsets Auto .
    Since Auto is Deprecated I Tried using , Apply Scene Offsets.


    Earlier Behaviour (Track Offsets Auto )

    During playing timeline Object moves from x=5 to x=10.
    On End Object Stays at x =10
    On PlayableDirector.Play(), Object again moves from x=5 to x=10

    Current Behaviour (Apply Scene Offsets.)

    During playing timeline Object moves from x=5 to x=10.
    On End Object Stays at x =10
    On PlayableDirector.Play(), Object moves from x=10 to x=15


    What should I do to ensure that Object moves from x=5 to x=10 everytime PlayableDirector.Play() is called, so that I can replay a cutscene?
     
  2. rushk1

    rushk1

    Joined:
    Sep 24, 2017
    Posts:
    39
    Transform Offsets works ....
     
  3. seant_unity

    seant_unity

    Unity Technologies

    Joined:
    Aug 25, 2015
    Posts:
    1,516
    Use transform offsets when the start position is absolute. Use scene offsets when you want it to play from the current position.
     
    tarahugger and rushk1 like this.
  4. rushk1

    rushk1

    Joined:
    Sep 24, 2017
    Posts:
    39
    That clarifies things , thanks a lot!!