Search Issue Tracker
Won't Fix
Votes
0
Found in
2017.4
2019.3.1f1
2020.2
Issue ID
1224110
Regression
No
Selection.activeObject is null during OnEnable when entering Play Mode
How to reproduce:
1. Open attached project "SelectionNull.zip" and scene "SampleScene"
2. In Hierarchy window, select "Main Camera" GameObject
3. In Editor menu, open Tools/MyEditorWindow
4. Enter play mode
5. In Console window, observe output
Expected result: Selection.activeObject returns a valid selection during EditorWindow.OnEnable
Actual result: Selection.activeObject returns null
Reproducible with: 2017.4.37f1, 2018.4.18f1, 2019.3.4f1, 2020.1.0a26, 2020.2.0a1
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
- Incorrect Shader keyword activation for Shadows when no Light is present in URP
- Editor freezes when loading a specific AssetBundle
- WebGPU builds with Multithreading enabled crash on Safari
- Set as Value in UI Builder doesn't work across all properties.
- Calculating time durations in RenderDoc with DX12 causes 'Device Lost error' popup
Resolution Note:
Low priority defect and unlikely to be fixed for the near future.