void Start repeats when there is instantiate?
I've done some research couldn't find anything. When i put a for loop that only repeats once inside a start function and the for loop is instantiating a game object the start function repeats itself! I don't understand why this is happening please help thanks.
The only thing i could imagine is that you instantiate a gameobject that has the same script attached to it, so every instance executes its start method too and this continues forever. But this cannot be told for sure unless you provide more information, most importantly your script.
Hi . you should to Print or Debug on this process first. if in Start function still repeats your code please use Boolean to control it.
Your answer
Follow this Question
Related Questions
Control the value of an animation with a slider 0 Answers
XML data from an API to a displayable String? 0 Answers
how to implement online leader board to my project? 0 Answers
Teleport 2D Character on TriggerEnter 2 Answers
Help with Trigger Colliders.. 0 Answers