Answer by AliAzin
you can't use yield in Update(). you should do it in start(), Awake() or custom functions like this:function Start(){ DoInstantiate(); } function DoInstantiate(){ while (true){ yield...
View ArticleAnswer by illinar
C# code I would recommend: public GameObject spawnObject; public float xRange; public float zRange; public float y; public float spawnRate; void Awake () { InvokeRepeating("Spawn", 0f, spawnRate); }...
View ArticleAnswer by unityart3ds
ok in java script for unity this is how you get the script to spawn a item and when it gets destroyed to let it spawn agein. var bullet : GameObject; var bulletbackup : GameObject; function Update () {...
View ArticleAnswer by AliAzin
you can't use yield in Update(). you should do it in start(), Awake() or custom functions like this:function Start(){ DoInstantiate(); } function DoInstantiate(){ while (true){ yield...
View ArticleAnswer by illinar
C# code I would recommend: public GameObject spawnObject; public float xRange; public float zRange; public float y; public float spawnRate; void Awake () { InvokeRepeating("Spawn", 0f, spawnRate); }...
View ArticleAnswer by unityart3ds
ok in java script for unity this is how you get the script to spawn a item and when it gets destroyed to let it spawn agein. var bullet : GameObject; var bulletbackup : GameObject; function Update () {...
View Article
More Pages to Explore .....