Search Issue Tracker
Not Reproducible
Votes
0
Found in
3.5.5f2
Issue ID
487539
Regression
No
Parent scripts are losing references to fields in their children script when copied
Parent scripts are losing references to fields in their children when copied.
- "Parent0" gamobject has a parent script, and a gameobject "Child0" has a child script with some public field, e.g. int that is set to 5.
- In "Parent0"'s Parent script, child = "Child0"'s child script.
- Copy "Parent0" and rename to "Parent1", and rename "Child0" to "Child1"
- Copy "Parent1" and rename correspondingly to "Parent2" and "Child2". Notice that the public field in the Inspector in the "Parent2" is not initialized showing value 0. However, in "Child2" the value is correct.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- "One or more data file missing for baking set NewScene Baking Set. Cannot load shared data." error in Player when a specific project is built
- Choosing new HDR Colour using RGB values breaks colour on Intensity Selectors
- Rendering/Decal Layer Mask options are different inside Prefab Mode and outside Prefab Mode when the project is upgraded to Unity 6
- Incorrect Realtime GI Light Probes baking when more than one Light Probe Group is used and "Baked Global Illumination" is enabled
- Hovering on the three-dot menu also highlights the tab header near it when not all tabs fit the bar
Add comment