how to duplicate object unity 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);
}