Hi I am creating many 2D objects and I need them to be parent of the main Object_Spawner let`s call it so the hierarchy is clean.
GameObject planet = Instantiate(planet_GameObject, pos, Quaternion.identity) as GameObject;
planet.transform.parent = gameObject.transform;
But after creating those objects (Sprites) I don`t see them. They change their scale to 0,0,0 after I transform/attach them to their parent.
Please do you know how to fix this?
↧