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
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
- "Custom Render Queue" field cannot be set above "2000" when changing it in the Inspector window using Debug mode
- "Preloaded Assets" list is empty when Player is built
- Input.GetKey() does not register key release when a specific key is pressed, and then released after opening a context menu
- Overlay Canvas is not visible when the Anti-aliasing field is set to FXAA and the Full Screen Pass Renderer Features’s Injection Point is set to “After Rendering Post Processing”
- The Particle System doesn't work when played through ContextMenu
Darkgaze
Aug 05, 2022 08:24
This bug happening again in 2022. Reported a bug.