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
- The search icon in the "Searches" sections is blurry and inconsistent
- "RenderingCommandBuffer" error is thrown when switching to the tvOS platform
- Left side cog menu button is obstructed by the maximum Y value of the graph when editing a curve in the Particle System Curves
- "Property exceeds previous array size (64 vs 32)." warnings are thrown when switching from tvOS platform to a Standalone platform after restarting the Editor
- NavMeshAgent "breaks" when approaching a non-carved NavMeshObstacle
Resolution Note:
Low priority defect and unlikely to be fixed for the near future.