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

Scripting

-

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.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.