Search Issue Tracker

Fixed in Unity 5.2.4



Found in


Issue ID




[Animator] Enabling Animator which was disabled in animation crashes Unity




Priority: 2Necessary for shipping a final release


Severity: 1Crash, freeze, data loss, work stops

Update: fixed in 5.2.3p1

Steps to reproduce:

1. Open attached project
2. Open scene "TestScene"
3. Run it
4. Select "BuggedAnimator" in hierarchy, disable and re-enable it
5. Enable "BuggedAnimator's" Animator component
6. Observe a crash

Note: "BuggedAnimator" object has animation which disables Animator component

Note: Not fixed in 5.2.2

Comments (9)

  1. 9c26ee0307758dfbf20469c7375410b6?d=mm


    Dec 03, 2015 15:55

    @HEVYDEVY83 It says it's fixed in 5.2.3p1 not 5.2.3f1.

  2. Bea2dd33e780012968444c959749c9a8?d=mm


    Nov 20, 2015 09:55

    Sadly if have to inform you that it is not fixed in 5.2.3f1.
    We still have to make sure that the animator is enabled in the prefab, otherwise the editor/app crashes.

    Additionally for some prefabs we were disabling the animator on Awake of a scene and enable it again after a fade-in, but even that is not working. We had to restrict that code to a specific Unity-Version.

    #if !UNITY_5_2_2
    battleCameraAnimator.enabled = false;
    battleCameraAnimator.applyRootMotion = true;

    Now we have to include 5.2.3 there to :(

  3. 94a9ac9c1e24afc34dc1f569f1562352?d=mm


    Nov 18, 2015 13:28

    Hi all,

    I have found a workaround for this problem. ( Using 5.2.2f1 )

    The problem occurs when You disable animator during animation transition and enable it later so,

    Try to set some animation state manually ( e.g. "Idle" ) just before disabling the animator:

    mAnimator.enabled = false;

    This helped in my case ( disabling animator for ragdoll )

    Cheers ;)

  4. 9f6081b7d3a37174a676a7fce4d774c4?d=mm


    Nov 06, 2015 18:38

    Still happens in 5.2.2p3.

  5. Af39f71d75f82ec93d69c6cd6365279b?d=mm


    Nov 04, 2015 16:56

    Still happens on 5.2.2p1.

  6. 24b87b58d4dc93a3e66fb5f21dcdf0b5?d=mm


    Oct 26, 2015 12:58

    Still happens on 5.2.2

  7. 355b394123ecab97e31827d2ac8caf65?d=mm


    Oct 21, 2015 20:36

    BTW, I'm using 5.2.1p3

  8. B14b4cab69f512f877d24b32caa7d890?d=mm


    Oct 21, 2015 07:08

    I'h having the same issue.

  9. 355b394123ecab97e31827d2ac8caf65?d=mm


    Oct 21, 2015 00:16

    Same thing happened to me. It's very important to me!

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.