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
- Fixing Message Loss in UMPE During Domain Reload
- The Editor freezes when ScheduleReadOnly of IJobParallelForTransform with dependency is used
- Text is truncated in the Inspector when the display scale is set to 150%
- CancellationTokenSource(<timeout>) has incorrect cancellation status when used in WebGL Player
- VFX property value names are cut off when properties with 'Arc' are viewed in the VFX Blackboard
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.