I want to instantiate prefab and then put this prefab(clone) to a variable.
Please help, thanks.
I want to instantiate prefab and then put this prefab(clone) to a variable.
Please help, thanks.
GameObject myVar = GameObject.Instantiate(myPrefab) as GameObject;