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
- Fixing Message Loss in UMPE During Domain Reload
- The Editor freezes when ScheduleReadOnly of IJobParallelForTransform with dependency is used
- Text is truncated in the Inspector when the display scale is set to 150%
- CancellationTokenSource(<timeout>) has incorrect cancellation status when used in WebGL Player
- VFX property value names are cut off when properties with 'Arc' are viewed in the VFX Blackboard
Resolution Note:
Low priority defect and unlikely to be fixed for the near future.