Search Unity

  1. All Pro and Enterprise subscribers: find helpful & inspiring creative, tech, and business know-how in the new Unity Success Hub. Sign in to stay up to date.
    Dismiss Notice
  2. 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:
    307
    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:
    474
    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:
    474
    Actually, before that, check that the Animator on your camera is set to Always Animate.
     
  4. ClaudiaTheDev

    ClaudiaTheDev

    Joined:
    Jan 28, 2018
    Posts:
    307
    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:
    474
    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
     
unityunity