Question by
fabian-mkv · Dec 14, 2015 at 04:01 AM ·
gameobjecteditordestroy object
GameObject not destroyed when stopping
Short: Upon clicking Play, ~50 game objects are instantiated via script. When clicking Play again (to stop), occasionally not all 50 objects are destroyed. Is this a bug with Unity?
Long: When I hit play, about 50 instances of a prefab are generated each with a sprite renderer and a script without functions. When I stop (hit play again), occasionally not all of these instances are cleared as it should. Once, all 50 instances remained in the scene. Another time, the first 5 instances remained. Is this a bug with Unity? I'm using Unity 5.2.2f1
Comment