Search Unity

  1. Unity 2018.3 is now released.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. We've updated our Terms of Service. Please read our blog post from Unity CTO and Co-Founder Joachim Ante here
    Dismiss Notice
  4. Want to provide direct feedback to the Unity team? Join the Unity Advisory Panel.
    Dismiss Notice
  5. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice

Replaying a Timeline

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

  1. rushk1

    rushk1

    Joined:
    Sep 24, 2017
    Posts:
    24
    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:
    24
    Transform Offsets works ....
     
  3. seant_unity

    seant_unity

    Unity Technologies

    Joined:
    Aug 25, 2015
    Posts:
    644
    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:
    24
    That clarifies things , thanks a lot!!