Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Elizeusz on July 13, 2012, 08:12:58 AM

Title: Set property
Post by: Elizeusz 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 ?
Title: Re: Set property
Post by: derkoi 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.
Title: Re: Set property
Post by: Elizeusz on July 13, 2012, 09:29:12 AM
Thank You :)
Title: Re: Set property
Post by: derkoi on July 14, 2012, 04:59:42 PM
You're welcome  :)
Title: Re: Set property
Post by: kenuab 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