Search Unity

SpriteRenderer animation frames not updating properly in timeline

Discussion in 'Cinemachine' started by admin_2SGamix, Feb 19, 2019.

  1. admin_2SGamix

    admin_2SGamix

    Joined:
    Apr 27, 2013
    Posts:
    12
    Hi, I have created spritesheet animation with SpriteRenderer component. It is working fine but when I drag and drop that animation on timeline some of the frames are skipping or not updated by timeline. Due to this I cannot sync my camera movement with rendered sprites.

    Please see attached files :

    Sketch:1-2 : Timeline Animation Preview : Sketch2 is Wrong, should be sprite#31,
    Sketch 4-5 : Sprite Animation Preview : Sketch5 is correct
     

    Attached Files:

  2. admin_2SGamix

    admin_2SGamix

    Joined:
    Apr 27, 2013
    Posts:
    12
    If anyboady knows about this issue then please let me know
     
  3. seant_unity

    seant_unity

    Unity Technologies

    Joined:
    Aug 25, 2015
    Posts:
    1,516
    Does your framerate of your clip match the framerate of timeline? If so, there may some precision issues when sampling the clip if your keys are exactly on the frame. You could try applying a small clip-in value (e.g. 0.001) to the timeline clip as a workaround.
     
  4. admin_2SGamix

    admin_2SGamix

    Joined:
    Apr 27, 2013
    Posts:
    12
    Edited : (Didn't check it properly before)

    Thanks, @seant_unity, it worked. I will start testing it in all my animations now asap.