Playmaker Forum

PlayMaker Updates & Downloads => Official Action Updates => Topic started by: Alex Chouls on April 12, 2011, 03:56:29 AM

Title: Destroy Object (bug fix)
Post by: Alex Chouls on April 12, 2011, 03:56:29 AM
Delay was broken.

Download and replace DestroyObject.cs in Assets/PlayMaker/Actions/
Title: Re: Destroy Object (bug fix)
Post by: mindlube 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?
Title: Re: Destroy Object (bug fix)
Post by: mindlube on September 04, 2011, 06:21:58 PM
Can anyone confirm, or hook me up with a working destroy object action? thanks
Title: Re: Destroy Object (bug fix)
Post by: Alex Chouls 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?