I have a Spawner which I instantiate, and then try to parent with
gameObject.transform.parent = Sun.transform;
It doesn't complain about the code, but when I start the build it says that "setting the parent of a transform which resides in a prefab is disabled to prevent data corruption"
How can I solve this?