Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: will_brett on August 06, 2013, 10:51:58 AM

Title: Set int on NGUI label
Post by: will_brett on August 06, 2013, 10:51:58 AM
Hey everyone,

Sorry if the answer to this one is obvious but i've been looking at this for a long time and gotten nowhere thus far.

I have created an FSM where I want to use an NGUI label to change the amount of something I have in the games UI. For example... in the UI I have some gold coins. I want the number next to the gold coins to change when I add more coins or subtract when spending them.

I know how to change this label with strings using the get and set property but can't see how to do it with an int.

Looking forward to your responses

cheers

W
Title: Re: Set int on NGUI label
Post by: jeanfabre on August 08, 2013, 03:55:35 AM
Hi,

 simply use the action "convert int to string" and inject the string in your label.

have you tried that already?

bye,

Jean