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
- Shader Graph Asset icon is not shown on creation unless you confirm the name
- APV Sky occlusion doesn't consider the terrain
- [iOS] "EXC_BAD_ACCESS" Player crash when Script Debugging is enabled
- Cursor skips input fields when tabbing between two sets of input fields
- "Shader error redefinition of 'Varyings'" error appears when selecting the shader
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.