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
- [Android] Stage information is not logged when Log Shader Compilation is enabled
- [Vulkan] The memory allocation increases rapidly when there are multiple (three or more) Real-Time Reflection Probes in the Scene
- Addressables Profiles and Analyze windows no minimum window size
- [macOS] Library folder of the opened project can be deleted which leads to the crash
- “Default Scene” dropdown field contains a spelling mistake “Default Builtin”
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.