playMaker

Author Topic: HasComponent error checking  (Read 1638 times)

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12342
  • Official Playmaker Support
    • View Profile
HasComponent error checking
« on: July 29, 2013, 12: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, 06:02:36 AM by jeanfabre »

szomaza

  • Full Member
  • ***
  • Posts: 172
    • View Profile
Re: HasComponent error checking
« Reply #1 on: July 17, 2016, 05: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: 12342
  • Official Playmaker Support
    • View Profile
Re: HasComponent error checking
« Reply #2 on: July 21, 2016, 06:02:57 AM »
Hi,

 Done.

 Bye,

 Jean