Author Topic: NGUI input and checkbox  (Read 2549 times)

rottweiler

  • Guest
NGUI input and checkbox
« 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?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI input and checkbox
« Reply #1 on: June 21, 2013, 05:39:44 AM »
It's an option on the UIInput: useLabelTextAtStart.