playMaker

Author Topic: Setting an attribute of an object from Playmaker  (Read 1618 times)

cdutoit

  • Playmaker Newbie
  • *
  • Posts: 28
Setting an attribute of an object from Playmaker
« on: September 02, 2013, 10:00:25 AM »
Hi - Complete newbie question here.

I have a gameobject. Attached to this gameobject is a script, which simply defines a number of public variables so that can be accessed and set in the Inspector window.

Now, in my FSM, I want to set/get a value of one of those attributes on my game object.

What is the proper way of achieving that?

Thanks in advance
Chris

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Setting an attribute of an object from Playmaker
« Reply #1 on: September 10, 2013, 06:12:02 AM »
Hi,

 If you don't have any actions or custom actions to access these variables somehow, then you can use "set property" action, ( simply drag a component onto the action stack and it will let you select it, and then it will give you the whole list of possible properties to set.

bye,

 Jean