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
- Texture Import Warnings are obscured by other Terrain Layer options in the Inspector
- Burst Inspector middle divider is jittering when resized with the Burst Inspector window docked
- JsonConvert conversion fails trying to call GetCallbackMethodsForType when [OnDeserialized] is used in a class
- Different text alignment in the column header in Entities "System" window
- Objects with Universal Render Pipeline/Particles/Lit shader are always lit up when changing their Rendering Layer Mask
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.