Search Issue Tracker
Won't Fix
Votes
0
Found in
2017.4.0f1
2018.4.0f1
2018.4.5f1
2019.2.0a1
2019.3.0a1
2020.1.0a1
Issue ID
1175773
Regression
No
Unused State behaviours are not cleaned up from .controller file when the StateMachineBehaviour array Size is set to 0
How to reproduce:
1. Open the attached "UnityAnimatorEvents.zip" Project
2. Open the "test controller" in the Animator window
3. Click on the "New State"
4. Add any script as a behavior several times (to see the difference)
5. Save and check "test controller.controller" file size in the file explorer
6. In the debug inspector change State Machine Behaviour Size array to 0
7. Save and check the size of the "test controller.controller" file again
Expected Behaviour: The State behaviours are cleaned up as some of them are not used
Actual Behaviour: The State behaviours are not cleaned up after setting the array to 0
Reproducible with: 2017.4.32f1, 2018.4.7f1, 2019.2.2f1, 2019.3.0a12, 2019.3.0a12, 2020.1.0a1
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
- [HDRP] Game view renders artifacts when Camera's Component "Post Anti-aliasing" is set to "TAA" and Dynamic Resolution's "Forced Screen Percentage" is changed
- A deactivated Prefab's name color becomes white when a GameObject in the scene is deactivated
- The Game view becomes blank when using Frame Debugger with MSAA and Texture binding enabled in Play Mode
- NullReferenceException is thrown when changing the Inspector preview selection
- The build size is larger when Models have Animation Type set to Generic
Resolution Note:
This is edge-case behaviour. We do not guarantee that behaviours are cleared when using the Debug inspector. We won't fix this.