gameobject clone 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);
}