Unity Issue Tracker - Editor freezes when entering the Play Mode after code changes
Closed
UUM-102551
Editor freezes when entering the Play Mode after code changes
Unity: Scripting Runtime
Won't Fix
6.0.X
This seems to be an issue with the user project, is is sucked in an infinite loop in CowPenScript.GenerateGrazingSpots where it never reaches the expected spotsCreated since the counter is not increased
Reproduction steps:
1. Open the attached “BugRepro” project
2. Open the “Assets/Scenes/Demo.unity” Scene
3. Open the “Assets/Scripts/Camera/IsometricCameraController.cs” script
4. Comment out 30-48 lines
5. Save the script (CTRL+S)
6. Enter the Play Mode
7. Exit the Play Mode
8. Observe the Editor
Expected result: The Editor does not freeze
Actual result: Editor freezes
Reproducible with: 6000.0.45f1
Reproducible on: Windows 11
Not reproducible on: No other environment tested
Notes:
Not reproduced by CQA
If the Editor does not freeze, try uncommenting the same lines and repeat steps 5–7
Prioritise and Follow this issue
Have a workaround or additional info about this issue?