Hello Guest

Author Topic: Prefab clones not getting removed after exiting play mode  (Read 3571 times)

diddykonga

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 2
    • View Profile
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 »

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
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?

diddykonga

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 2
    • View Profile
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