Search Issue Tracker
Won't Fix
Votes
0
Found in
2017.4
2018.4
2019.2
2019.3
2019.3.0f1
2020.1
Issue ID
1215235
Regression
No
Unmaximizing Editor Window results in a new window being created and deleted
How to reproduce:
1. Open attached project "Maximising EditorWindow Loses Static Instance.zip"
2. In Editor, click Test -> My Window
3. Observe newly-created window -> "Instance" field (the field is set)
4. Dock the window next to the Scene and Game windows
5. Right-click and Maximise it
6. Right-click and Un-Maximise it
7. Observe the Console window
7. It apparently creates a new window because "Set Instance = 1 (NewBehaviourScript)" gets logged.
7. But then it logs "OnDestroy 1" meaning the new window was immediately destroyed (not the old one).
8. And since step 6 set that new window as the static instance, it is now null so it stops working as a singleton.
Expected result: "Set Instance = 1" and "OnDestroy 0" are printed
Actual result: "Set Instance = 1" and "OnDestroy 1" are printed
Reproducible with: 2017.4.36f1, 2018.4.16f1, 2019.2.20f1, 2019.3.0f6, 2020.1.0a21
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
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
Resolution Note (2020.1.X):
Low priority defect and unlikely to be fixed for the near future.