Search Issue Tracker
Fixed in 5.3.0
Votes
0
Found in
5.2.1p1
Issue ID
730696
Regression
Yes
Setting object's parent to null in Awake makes it invisible in the hierarchy
Steps to reproduce:
1. Open attached project
2. Open scene "/Scenes/Bug"
3. Expand "Directional Light" in the hierarchy and notice that it parents "Main Camera"
4. Run scene and notice that "Main Camera" is no longer visible in the hierarchy, but the game view is still rendered, which means that "Main Camera" doesn't get destroyed
Note: Bug.cs sets parent of "Main Camera" to null in Awake(). If we did the same in Start() then this bug wouldn't be present.
Workaround: Change parent in Start()
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Tile Palette selected dropdown text does not update when palette is renamed
- ArgumentException thrown and reference to Template gets unset when opening UXML file after editing referenced Template in Play mode
- [iOS][WebGL] Player freezes when multiple properties of a VisualElement are changed at the same time
- Warning 'GetControlID at event ValidateCommand returns a controlID different from the one in the Layout event' is logged when undoing the deletion of an Edited Freeform 2D Light
- ShadowCaster2D breaks on certain Rotation positions when Casting Source is set to PolygonCollider2D
Add comment