Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Bug SpriteRenderer's property won't reset after timeline/animation track ends.

Discussion in 'Timeline' started by WhiteDoggy, Mar 30, 2022.

  1. WhiteDoggy

    WhiteDoggy

    Joined:
    Sep 10, 2020
    Posts:
    17
    Version:
    - Unity 2020.3.24.LTS
    - Tilmeline: 1.6.4


    Background
    - 2D Game that uses sprite sheet animation.
    - Have animation track that plays animation from animation clip.
    - Animation clip will change SpriteRenderer's properties. (in this case, flip X)
    - Timeline wrap mode, animation track's all extrapolation value is set to 'None'

    Problem
    - Properties in SpriteRenderer like color, flip x/y will not come back to previous value that before playing animation clip.


    I don't think this is a bug because timeline is such a old feature. But I wonder why there are so few(almost none) threads about this. I think this is a odd behavior because other value like position will be reset normally.



    Animation Clip.png
    [Animation clip that changes some property(Flip X)]


    Timeline setting.png
    [Animation clip's setting in timeline]


    Playable Director.png
    [Playable Director Setting]