Search Issue Tracker
Third Party Issue
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
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
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.