Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Bug Timeline just stops when I animate a camera. I am desperate!

Discussion in 'Timeline' started by ClaudiaTheDev, May 8, 2021.

  1. ClaudiaTheDev

    ClaudiaTheDev

    Joined:
    Jan 28, 2018
    Posts:
    331
    I have a simple camera without Cinemachine.
    I move the camera from point A to B with an animation track on its transform.

    Behavior in editor: Works fine

    Behavior in play mode with option "Maximize on Play" ON : Complete timeline just stops (pauses?) during the animation track (a bit over the half)
    upload_2021-5-8_19-6-30.png

    Behavior in play mode with option "Maximize on Play" OFF: Works fine

    I muted and unmuted all other tracks and so i am 100% sure it's the camera track. When i don't try to move the camera it also works.

    Can someone please tell me what the issue can be? I really don't know what to do now to animate this camera.
     
  2. DavidGeoffroy

    DavidGeoffroy

    Unity Technologies

    Joined:
    Sep 9, 2014
    Posts:
    542
    Impossible to tell with just this description.

    Please file a bug report with your timeline, and paste the bug number here. We'll look at it early next week and figure out what the problem is.
     
  3. DavidGeoffroy

    DavidGeoffroy

    Unity Technologies

    Joined:
    Sep 9, 2014
    Posts:
    542
    Actually, before that, check that the Animator on your camera is set to Always Animate.
     
  4. ClaudiaTheDev

    ClaudiaTheDev

    Joined:
    Jan 28, 2018
    Posts:
    331
    Ok i found the issue, it was a combination of two animation tracks. I don't know if this is a bug or this behavior is intended.

    upload_2021-5-8_23-56-5.png

    The Animator of the camera is set to "Always Animate" .
    The Animator of the blue butterfly blob (round light blue body ball) is set to "Cull Completely". There are many blobs in scenes so i set this to save performance and a blob is a prefab.

    I have an animation track for both the butterfly blob and camera:
    upload_2021-5-9_0-0-19.png

    The timeline freezes as soon as the blob body is out of view:
    upload_2021-5-9_0-1-55.png


    So the fix is to change the option on the butterfly to "Always Animate" for the timeline.

    It worked in Editor Mode and in Minimized Gameplay mode because the butterfly was still visible in the editor window then.

    I have a fix now, but it feels like a bug. Shouldn't the timeline just continue and only stop animating the butterfly when it's body is out of view?
     
  5. DavidGeoffroy

    DavidGeoffroy

    Unity Technologies

    Joined:
    Sep 9, 2014
    Posts:
    542
    Normally one animator being culled shouldn't have an impact on the rest of the Timeline.

    But any number of things could cause this, and this is why the best for us is to have a look at the scene itself to see if it's a bug in Unity, or a combination of systems causing it.

    We would really appreciate a bug report
     
  6. epc812

    epc812

    Joined:
    Aug 8, 2022
    Posts:
    8
    This also solved it for me. Which I thought was weird because I didn't have this problem before. Turned out it was (probably) because I had animation clips for that object during the period it was inactive. Muted the animation track and there were no problems.