playMaker

Author Topic: FsmOwnerDefault doesn’t work with CheckForComponent  (Read 2533 times)

ToxicBlob

  • 1.2 Beta
  • Playmaker Newbie
  • *
  • Posts: 7
FsmOwnerDefault doesn’t work with CheckForComponent
« on: February 17, 2012, 04:50:30 PM »
Code: [Select]
[RequiredField]
[CheckForComponent(typeof(PolyText))]
public FsmOwnerDefault gameObject;

PlayMaker successfully checks if the default game object has the component.  However, if I change gameObject to a global variable game object that does NOT have the component, the error is not caught by PlayMaker.  It is later found by Unity at runtime.

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4000
  • Official Playmaker Support
    • LinkedIn
Re: FsmOwnerDefault doesn’t work with CheckForComponent
« Reply #1 on: February 17, 2012, 11:55:34 PM »
Good catch! This is fixed in 1.3.2.