playMaker

Author Topic: FindGameObject fix[SOLVED]  (Read 6291 times)

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
FindGameObject fix[SOLVED]
« 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
« Last Edit: March 23, 2016, 02:56:01 AM by jeanfabre »

MS80

  • Junior Playmaker
  • **
  • Posts: 64
Re: FindGameObject fix
« Reply #1 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).

« Last Edit: March 21, 2016, 12:10:58 PM by MS80 »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: FindGameObject fix
« Reply #2 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, called FindGameObject2. 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

MS80

  • Junior Playmaker
  • **
  • Posts: 64
Re: FindGameObject fix[SOLVED]
« Reply #3 on: March 25, 2016, 09:24:13 AM »
Many many thanks Jean, this works perfectly!  :)