Playmaker Forum

PlayMaker Updates & Downloads => Official Action Updates => Topic started by: jeanfabre on October 30, 2014, 04:50:27 AM

Title: FindGameObject fix[SOLVED]
Post by: jeanfabre on October 30, 2014, 04:50:27 AM
Hi Everyone,

 Please find a fix for the action FindGameObject that was not calling Finish() and as a result would cause trouble in some fsm setup.

[EDIT] this has been included in the official version when installing PlayMaker.

 Bye,

 Jean
Title: Re: FindGameObject fix
Post by: MS80 on March 21, 2016, 11:57:43 AM
I know this is a old thread, but "FindGameObject" action does still have a similar issue if the tag is not defined (UnityException: Tag: 00-10 is not defined.)

So if you want to find a gameobject by a tag which does not exist in unity's tag-list, this action will not call finish. It even blocks the current state, following actions will never be executed.

Maybe it's not the best idea to search for not existings tags, but I need this in my special case (many different numbered tags and objects, found objects by tag will be stored in array).

Title: Re: FindGameObject fix
Post by: jeanfabre on March 23, 2016, 02:52:07 AM
Hi,

 Ok, I improved the action, and made it as a custom action available on the Ecosystem (http://j.mp/PlayMakerEcosystem), called FindGameObject2 (https://github.com/jeanfabre/PlayMakerCustomActions_U4/blob/master/Assets/PlayMaker%20Custom%20Actions/GameObject/FindGameObject2.cs). It will have a new event property that will be fired if the tag is not found.

Let me know if all is good now.

Bye,

 Jean
Title: Re: FindGameObject fix[SOLVED]
Post by: MS80 on March 25, 2016, 09:24:13 AM
Many many thanks Jean, this works perfectly!  :)