Search Issue Tracker
Won't Fix
Votes
0
Found in
5.3.4f1
Issue ID
803156
Regression
No
GetComponent("Halo") fails when there is dynamically attached parent to dynamically attached prefab.
Reproduction steps:
1.Open project I attached(SkyboxTestSceneRepro)
2.Open Main scene
3.Play project
Notice NullReferenceException appearing
Exceptions are coming from dynamically attached GameObjects when HaloResizerForPlanets script is trying to change "Halo" Size property.
Those objects are instantiated in StarSystemInfoScript.
Note that this issue does not appear in two cases:
1) Parent for planet (dynamically instantiated GameObject) is not set (line 280 in StarSystemInfo.cs)
2) If parent is set, then in HaloResizeForPlanets.cs variable fLastKnownScale (line 19) has to bet set in Start() method. If it is set in Awake() exceptions also will be raised.
Reproduced in: 5.3.5p3, 5.2.0f3, 5.4.0b20
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Memory leaks occur when Shader with more than 128 keywords is compiled
- Player built for Windows silently crashes when UI Prefab is instantiated and Render Feature "Render Objects" is active in PC_Renderer Asset
- Crash on CollectUsedSceneObjects when making any modifications and saving in a Scene with a specific GameObject Component enabled
- VFX Graph Properties Transform has a click animation when clicked on the “Transform” text but the drop down does not open
- "Cascade Shadow atlasing has failed" errors are spammed when two Directional Lights with the Shadow Map are enabled and there is a 3D GameObject in the scene
Add comment