Search Issue Tracker
Fixed in 5.2.4
Votes
8
Found in
5.2.1p4
Issue ID
737437
Regression
Yes
[Animator] Enabling Animator which was disabled in animation crashes Unity
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)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Animator window has a dropdown button that throws “MissingReferenceException” error on a new project when the previous project had a GameObject with an animation
- Terrain Layer settings remain when the Terrain Layer is removed
- Terrain Layer settings UI elements overlap when a new Terrain Layer is created
- Animator State name overflows outside the visual box when the State has a long name
- UI Document file remains marked as Dirty after Undoing made changes
jc_203
Dec 03, 2015 15:55
@HEVYDEVY83 It says it's fixed in 5.2.3p1 not 5.2.3f1.
https://unity3d.com/unity/qa/patch-releases/5.2.3p1
HevyDevy83
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;
#endif
Now we have to include 5.2.3 there to :(
CrazyRocksStudios
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.Play("Idle");
mAnimator.enabled = false;
This helped in my case ( disabling animator for ragdoll )
Cheers ;)
Aram-Azhari
Nov 06, 2015 18:38
Still happens in 5.2.2p3.
georgepiva
Nov 04, 2015 16:56
Still happens on 5.2.2p1.
zbyhoo
Oct 26, 2015 12:58
Still happens on 5.2.2
ShrinePhaNT0M
Oct 21, 2015 20:36
BTW, I'm using 5.2.1p3
MatthieuP
Oct 21, 2015 07:08
I'h having the same issue.
ShrinePhaNT0M
Oct 21, 2015 00:16
Same thing happened to me. It's very important to me!