Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: rottweiler on June 20, 2013, 05:03:12 PM

Title: NGUI input and checkbox
Post by: rottweiler on June 20, 2013, 05:03:12 PM
Hello.
I have an input label and i get text for this from variable. But when i click on label text is disappear. When i input text in game and then click on iput label, text remains and i can easily change it. How make text not to disappear? For taking text from variable i use this:

  1. var healthText : GameObject;
  2. function Start () {
  3. healthText.GetComponent(UILabel).text = health;
  4. }

And another question. How control checbox state via script?
Title: Re: NGUI input and checkbox
Post by: ArenMook on June 21, 2013, 05:39:44 AM
It's an option on the UIInput: useLabelTextAtStart.