Unity gets hang and nothing work in it, even I have to close it from the task manager
I'm generating an infinite dynamically path using prefab of simple cube and a player object which is an another cube is moving on that path. When the player object passes from a path that part of path is destroyed so I can keep size of hierarchy limited. But the problem is after generation of about 700 cubes unity gets stuck. 700 is not its limit sometime number of generated gameobject crosses 1000 as well but after a while it get stuck.
Can anyone tell that what type of mistake I may be making or from where I should start looking to get rid of this problem?
Your answer
Follow this Question
Related Questions
Want to instantiate Prefab in its parent. 1 Answer
Instantiating prefab causes existing instances to change values 1 Answer
LookAt method not working on instantiated objects. 1 Answer
How do I Instantiate a prefab at the x axis position of where the UI button was clicked 1 Answer
How to Change the Variables of an Instantiated Object? 0 Answers