playMaker

Author Topic: HasComponent error checking  (Read 6184 times)

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
HasComponent error checking
« on: July 29, 2013, 03:17:28 AM »
Hi,

 Following a post, I realized that hasComponent action can fire errors if you pass a null reference for the gameObject, so if you are having this issue, simply use the version attached: it will fire the false event if no gameobject is passed.

[Update] also set "Store" property accordingly. Action will be updated officially in the next PlayMaker update.

bye,

 Jean
« Last Edit: July 21, 2016, 09:02:36 AM by jeanfabre »

szomaza

  • Sr. Member
  • ****
  • Posts: 253
Re: HasComponent error checking
« Reply #1 on: July 17, 2016, 08:28:25 AM »
Also it does not do anything with:
public FsmBool store;

So it does not store the result of the check into a bool variable.

I am on Playmaker: 1.7.8.3p2

Please fix if this has not been corrected in newer version.
Br,
szomaza

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: HasComponent error checking
« Reply #2 on: July 21, 2016, 09:02:57 AM »
Hi,

 Done.

 Bye,

 Jean