playMaker

Author Topic: Set property  (Read 2945 times)

Elizeusz

  • Playmaker Newbie
  • *
  • Posts: 32
Set property
« on: July 13, 2012, 08:12:58 AM »
Hi :) I have gameObject with some script on it. Then i want to change some variables on this gameObject script by clicking NGUI button can i do this ?

derkoi

  • Full Member
  • ***
  • Posts: 187
Re: Set property
« Reply #1 on: July 13, 2012, 08:37:30 AM »
Yes, you need to add the NGUI get Onclick script which is on this forum to the button.

Then add an OnClick action to the Playmaker FSM and then add a set property to a new state in the fsm.

Click the button to hold the playmaker screen whilst you select the script you want to change and drag it to the set property action, you can you select the property you want to control.

Sorry if it's a bit hard to understand. I don't have playmaker in front of me to check the names of everything.

Elizeusz

  • Playmaker Newbie
  • *
  • Posts: 32
Re: Set property
« Reply #2 on: July 13, 2012, 09:29:12 AM »
Thank You :)

derkoi

  • Full Member
  • ***
  • Posts: 187
Re: Set property
« Reply #3 on: July 14, 2012, 04:59:42 PM »
You're welcome  :)

kenuab

  • Playmaker Newbie
  • *
  • Posts: 10
Re: Set property
« Reply #4 on: July 16, 2012, 04:22:26 PM »
Here you go, script for download and screen shots:

http://hutonggames.com/playmakerforum/index.php?topic=1356.0