how to clone something as a parent unity code example
Example: how to clone something as a parent unity
GameObject obj = Instantiate(sphere, RandomPosition(), Quaternion.identity) as GameObject;
go.transform.parent = transform;
GameObject obj = Instantiate(sphere, RandomPosition(), Quaternion.identity) as GameObject;
go.transform.parent = transform;