void Start () { GameObject instance = Instantiate(Resources.Load("Cube1", typeof(GameObject))) as GameObject; }
Instantiate object from resources folder. Replace Cube1 for your object name.
void Start () { GameObject instance = Instantiate(Resources.Load("Cube1", typeof(GameObject))) as GameObject; }
Instantiate object from resources folder. Replace Cube1 for your object name.