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
- Editor crashes on StoredGraphicsBuffer::GetGfxBufferID when VFX Graph property is modified during Play Mode and Application.targetFrameRate is used to limit FPS
- Crash on NVAPI_Thunk when changing Player resolution while HDR display is used and Direct3D12 is set as the graphics API
- Only one out of multiple cameras is shown in the Play Mode while HDR display is used and Direct3D12 is set as the graphics API
- The "Paste Component as New" option is incorrectly displayed as active despite the action being prohibited
- "TLS Allocator ALLOC_TEMP_TLS" errors are thrown when unsuccessfully importing an FBX file
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.