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