playMaker

Author Topic: Set int on NGUI label  (Read 2286 times)

will_brett

  • Junior Playmaker
  • **
  • Posts: 72
Set int on NGUI label
« 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

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Set int on NGUI label
« Reply #1 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