Hello
Guest
Home
Help
Search
Login
Register
2D Toolkit Forum
»
2D Toolkit
»
Support
»
Prefab clones not getting removed after exiting play mode
« previous
next »
Print
Pages: [
1
]
Author
Topic: Prefab clones not getting removed after exiting play mode (Read 4497 times)
diddykonga
2D Toolkit
Newbie
Posts: 2
Prefab clones not getting removed after exiting play mode
«
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.
«
Last Edit: December 21, 2013, 05:20:57 pm by diddykonga
»
Logged
unikronsoftware
Administrator
Hero Member
Posts: 9709
Re: Prefab clones not getting removed after exiting play mode
«
Reply #1 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?
Logged
diddykonga
2D Toolkit
Newbie
Posts: 2
Re: Prefab clones not getting removed after exiting play mode
«
Reply #2 on:
December 22, 2013, 11:19:16 am »
Wow just remembered i accidently added the Execute in Edit Mode -_- lol thanks
Logged
Print
Pages: [
1
]
« previous
next »
2D Toolkit Forum
»
2D Toolkit
»
Support
»
Prefab clones not getting removed after exiting play mode