playMaker

Author Topic: Destroy Object (bug fix)  (Read 7239 times)

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Destroy Object (bug fix)
« on: April 12, 2011, 03:56:29 AM »
Delay was broken.

Download and replace DestroyObject.cs in Assets/PlayMaker/Actions/
« Last Edit: April 12, 2011, 04:02:36 AM by alexchouls »

mindlube

  • Playmaker Newbie
  • *
  • Posts: 32
Re: Destroy Object (bug fix)
« Reply #1 on: September 03, 2011, 04:26:59 PM »
I can't get this updated action to work, nor the original 1.1.x action. It always loses the connection to the gameobject I've picked in the editor. Any ideas?

mindlube

  • Playmaker Newbie
  • *
  • Posts: 32
Re: Destroy Object (bug fix)
« Reply #2 on: September 04, 2011, 06:21:58 PM »
Can anyone confirm, or hook me up with a working destroy object action? thanks

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: Destroy Object (bug fix)
« Reply #3 on: September 04, 2011, 09:27:54 PM »
Are you trying to reference a scene object from a prefab by any chance?

Prefabs can't reference scene objects in Unity - it looks like they can while you edit, but it won't save/load.

If this is the problem, one approach is to find the scene object at runtime (by name, tag etc.) and store it in a GameObject variable, then use that variable in actions.

If this isn't the problem, when is the connection lost?