Search Issue Tracker
Third Party Issue
Third Party Issue in 2023.1.X
Votes
0
Found in
2020.3.44f1
2021.3.17f1
2022.2.4f1
2023.1.0b2
Issue ID
UUM-25382
Regression
No
Unsubscribing from "SceneView.duringSceneGui" in OnDisable() is ignored when unsubscribing more than once at the same time
Reproduction steps:
1. Open project “TestProject”
2. Open scene “TestScene”
3. Make sure 2 Inspector windows are open
4. Select the “TestBehaviour” GameObject
5. Hover the mouse over the Scene view and observe the log message “On Scene GUI 1“ being spammed in the console
6. Deselect the “TestBehaviour” GameObject
7. Hover the mouse over the Scene view
Expected result: the log messages are no longer spammed in the console
Actual result: the log messages “On Scene GUI 0” is being spammed in the console
Reproducible with: 2020.3.44f1, 2021.3.17f1, 2022.2.4f1, 2023.1.0b2
Reproducible on: macOS Catalina 10.15.7 (Intel)
Note: a single Inspector window opened gives expected results - unsubscribing from “SceneView.duringSceneGui” is done once
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
- “No method with RuntimeInitializeOnLoadMethod attribute” warning from ReadmeEditor.cs is thrown after installing Project Auditor Rules
- Projection matrix is altered when using RasterCommandBuffer.ClearRenderTarget on DX12 and Metal
- Entities Hierarchy window allows Cyclic nesting and throws an “ArgumentException: Cyclic nesting detected” error when dragging a Prefab onto the same Prefab in the Entities Hierarchy
- EnterPlayModeOptions doesn't take effect if user manually modifies m_EnterPlayModeOptionsEnabled to 0
- VFX Graph Documentation dropdown button does nothing when clicked on the right side
Resolution Note:
The example code is incorrect. The line responsible for removing the "static" delegate is actually referencing an instance method. Changing the "StaticOnSceneGUI" method to "static" elicits the expected behaviour.
Resolution Note (2023.1.X):
The example code is incorrect. The line responsible for removing the "static" delegate is actually referencing an instance method. Changing the "StaticOnSceneGUI" method to "static" elicits the expected behaviour.