Search Issue Tracker
By Design
Votes
2
Found in
2019.3.0b6
2019.3.0f3
2020.1
Issue ID
1206282
Regression
Yes
Editor.OnSceneGUI is not called when hovering the mouse over the Scene window
How to reproduce:
1. Open the attached "1206282.zip" project
2. Open the "SampleScene" Scene
3. Select the "Cube" GameObject in the Hierarchy window
4. Hover the mouse over the Scene window
5. Observe the Console window
Expected result: The method "OnSceneGUI()" is called in the Script "OnSceneGUI_Code" and the message in the Console is printed
Actual result: The method "OnSceneGUI()" is not called and there's no message
Reproducible with: 2019.3.0b6, 2019.3.0f4, 2020.1.0a17
Not reproducible with: 2017.4.35f1, 2018.4.15f1, 2019.2.17f1, 2019.3.0b5
-
slalom_
May 01, 2022 10:31
Does enabling "Always Refresh" under the Scene View toolbar have any effect?
-
huulong
Jul 28, 2021 19:02
If you found this issue from a search engine but you're actually looking for the case where OnSceneGUI is not called *at all* even after enabling gizmos, please check this new issue instead: https://issuetracker.unity3d.com/issues/onscenegui-is-not-being-called-when-using-a-certain-layout
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
- “[Worker0] Could not generate preview image“ error when opening macOS native plugin in the Inspector with Architecture to build for set to ARM 64-bit
- [iOS] Application.absoluteURL is empty on Awake/Start when opening via deep link with Splash Screen disabled
- Crash on MemoryManager::Deallocate when rapidly calling Addressables.LoadAssetAsync
- Crash on physx::shdfnd::atomicIncrement when adjusting values on a character controller component after entering Play mode in Prefab edit mode
- [Rendering Debugger] [NewInputSystem] Debug Overlays in Play mode throws InvalidOperationException when using New Input System
Resolution Note:
This is normal behaviour, OnSceneGui is called if gizmos for that object are enabled. Gizmos can be disabled several ways: individually through the gizmo menu in the Scene View, all at once through the SceneView gizmo menu toggle and through code via SceneView.drawGizmos