playMaker

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

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12351
  • Official Playmaker Support
    • View Profile
FindGameObject fix[SOLVED]
« on: October 30, 2014, 01: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 22, 2016, 11:56:01 PM by jeanfabre »

MS80

  • Junior Playmaker
  • **
  • Posts: 62
    • View Profile
Re: FindGameObject fix
« Reply #1 on: March 21, 2016, 08: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, 09:10:58 AM by MS80 »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12351
  • Official Playmaker Support
    • View Profile
Re: FindGameObject fix
« Reply #2 on: March 22, 2016, 11:52:07 PM »
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: 62
    • View Profile
Re: FindGameObject fix[SOLVED]
« Reply #3 on: March 25, 2016, 06:24:13 AM »
Many many thanks Jean, this works perfectly!  :)