Search Issue Tracker
Fixed in 2021.2.X
Votes
0
Found in
2018.4
2019.4
2020.3
2020.3.3f1
2021.1
2021.2
Issue ID
1331034
Regression
No
OnDrawGizmos is called from a collapsed script after restarting the Editor
How to reproduce:
1. Open the attached project "case_1331034-GizmoTest.zip"
2. Open SampleScene
3. Click on GameObject in the Scene Hierarchy
4. Expand the GizmoTest script in the Inspector
5. Observe the messages printed to the Console
6. Collapse the GizmoTest script
7. Observe nothing is printed to the Console
8. Close and reopen the project
9. Observe messages printed to the Console
Expected result: No messages are printed to the Console after reopening the Project
Actual result: Messages are printed to the Console despite the GizmoTest script being collapsed
Reproducible with: 2018.4.34f1, 2019.4.25f1, 2020.3.6f1, 2021.1.5f1, 2021.2.0a15
Notes:
1. If you expand and collapse the GizmoTest script after restarting the Editor the OnDrawGizmos method will not be called any more
Comments (1)
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
- [Linux] The Error "ReleaseButton expects buttonId" is thrown when trying to add file using drag and hold in the Project Window
- Highlighted text is difficult to see in “Create Node” menu when Editor theme is set to light
- Blank, Light-Themed "Create Node" window becomes visible on the next project open
- UI Elements/Layout inconsistencies in the Particle System component
- The Game view and Scene view fail to render when launching the Editor with a maximized Render Graph Viewer window
Darkgaze
Aug 05, 2022 08:24
This bug happening again in 2022. Reported a bug.