- Home /
What is causing "Destroy" to take so much time when entering play mode?
Hi, I am trying to figure out what is causing to entering play mode takes over 1 minute every time. I am using profiler to see what is happening and it only gives a "Destroy" message in overview. I tried deleting all the scripts including editor scripts and plugins, deleting objects in the scene, deleting resources folder but no luck. You can't imagine how it is to try to debug something when entering and exiting play mode takes 2 minutes. Please help if you know something about this issue. I am attaching a screenshot from the profiler window.
How many objects are you destroying? And we need the script that call destroy. Seem like you are destroying in a loop or something.
Or worst like Instantiate while destroy
Answer by mahmuttuncer · Jul 02, 2018 at 12:40 PM
When I disabled the "deep profile" I get a more detailed information. I will ask another question about that.
Your answer
Follow this Question
Related Questions
Clones dont get removed after exiting play mode 0 Answers
How to properly destroy a script-created AudioClip ? 1 Answer
Why is the function "Destroy" taking so much time 2 Answers
Best approach for a distance based destroyer 1 Answer
using Contains(gameObject) to find and destroy a gameObject from a list 2 Answers