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
- HDRP 6-way VFX Shader is lit incorrectly when World coordinates are used
- 2D Sprite Renderer in front is affected by Sprites in the background when using Sorting Layers and a Shadow Caster 2D with Self Shadow
- Modifying UI Prefab child's Height only confirms the first 1 or 2 digits when the Scene is newly opened or the Prefab is newly created
- ProfilingSampler.Get() returns null and makes the Player only render black when building a Release Build
- Search text field visual controls for the Path binding in an Input Actions Asset is misaligned
Add comment