Search Issue Tracker

Active

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

Animation

-

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

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.