Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question wrapMode = None is not resetting on loopback

Discussion in 'Timeline' started by pablobandinopla, Jul 12, 2023.

  1. pablobandinopla

    pablobandinopla

    Joined:
    Jul 2, 2021
    Posts:
    98
    When a timeline with wrapMode set to None reaches the end, it loops back to time 0 and stays there. The problem is, it is not executing that frame. Is this intentional?

    Im currently doing this to get the result i want:
    Code (CSharp):
    1. timeline.time = 0;
    2. timeline.Evaluate();
    3. timeline.Stop();
    if i dont do that, after the end is reached and goes back to time 0, none of the elements moved in the timeline are resetted to the positions/rotations of frame 1...