playMaker

Author Topic: GetProperty to access datatype stored in a variable  (Read 1761 times)

Jake

  • Junior Playmaker
  • **
  • Posts: 61
    • Fluffy Underware
GetProperty to access datatype stored in a variable
« on: May 29, 2013, 08:39:48 AM »
Hi,

maybe I'm missing something obvious, but I want to access a custom class property with the GetProperty action. That's working like intended as long as I drag&drop my component into the action, but I need the input to GetProperty come from a variable.

How should I solve this?

Cheers
Jake

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: GetProperty to access datatype stored in a variable
« Reply #1 on: May 30, 2013, 07:13:08 AM »
Hi,

 create a FsmObject variable, set it's type and then drag it in there.

If your object comes only at runtime, then you can use the action "Set Object Value", then Set and Get Property action simply need you to reference that FsmObject var.

bye,

 Jean