unity make a new copy of gameobjects code example
Example: clone gameobject unity c#
public GameObject rootObj;
void Start()
{
GameObject duplicate = Instantiate(rootObj);
}
public GameObject rootObj;
void Start()
{
GameObject duplicate = Instantiate(rootObj);
}