Quantcast
Channel: Answers for "Delay between each instantiation"
Browsing all 6 articles
Browse latest View live

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 Article



Answer 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 Article

Answer 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

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 Article

Answer 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 Article


Answer 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
Browsing all 6 articles
Browse latest View live




Latest Images