unity duplicate gameobject code example
Example 1: clone gameobject unity c#
public GameObject rootObj;
void Start()
{
GameObject duplicate = Instantiate(rootObj);
}
Example 2: how to clone somthing unity
public GameObject GameOjectYouWantToClone;
GameObject CloneOfGameOject = Instantiate(GameOjectYouWantToClone);