2D Toolkit Forum

2D Toolkit => Support => Topic started by: diddykonga on December 20, 2013, 08:49:16 pm

Title: Prefab clones not getting removed after exiting play mode
Post by: diddykonga on December 20, 2013, 08:49:16 pm
Hi, So after i instantiate a couple of Prefabs that have a tk2DSprite on them and them to a List, for some reason if i end play mode, they are still there.
Any help at all would be appreciated :)

http://pastebin.com/Wa9PDgB5
Here is the code for instantiating them.
Title: Re: Prefab clones not getting removed after exiting play mode
Post by: unikronsoftware on December 21, 2013, 10:49:51 pm
This can't happen, unless your instantiate code is running in the editor - Unity pretty much destroys everything between edit -> play mode. Have you dropped some Debug.Logs / breakpoints in the debugger to see whats going on?
Title: Re: Prefab clones not getting removed after exiting play mode
Post by: diddykonga on December 22, 2013, 11:19:16 am
Wow just remembered i accidently added the Execute in Edit Mode -_- lol thanks