Search Unity

Way to reset rotation after changing it with Timeline

Discussion in 'Timeline' started by tranos, Jan 5, 2021.

  1. tranos

    tranos

    Joined:
    Feb 19, 2014
    Posts:
    180
    Hello. Is there a way to reset position after playing animation with Timeline? In general I want to temporarily do stuff and reset them all, after Timeline ends. I am using it for 2d objects.
    Thank you.
     
    Last edited: Jan 5, 2021
  2. tranos

    tranos

    Joined:
    Feb 19, 2014
    Posts:
    180
    Probably, Ive found a solution. I ll come back to post it.
     
  3. DavidGeoffroy

    DavidGeoffroy

    Unity Technologies

    Joined:
    Sep 9, 2014
    Posts:
    542
    Are you trying to reset the position to the original position, or just trying to modify the position after the Timeline is done playing?
     
  4. tranos

    tranos

    Joined:
    Feb 19, 2014
    Posts:
    180
  5. DavidGeoffroy

    DavidGeoffroy

    Unity Technologies

    Joined:
    Sep 9, 2014
    Posts:
    542
    The answer varies a lot depending on which options you have chosen on the Animator and on your track.

    Assuming you have not chosen Apply Root Motion on the Animator, then fading out the last clip on the Timeline like this:
    upload_2021-1-7_16-51-42.png

    Should bring back your object to the original pose when it was loaded.