Author Topic: UILocalize's UpdateText gone?  (Read 2126 times)

ENAY

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 248
    • View Profile
UILocalize's UpdateText gone?
« on: August 23, 2012, 07:53:31 AM »
On some old code, I was changing the text of a Label by changing its keycode.
eg

Prologue_Text_Slider.GetComponentInChildren<UILocalize>().key = key_name;

However the text did not actually update until I called this:-

Prologue_Text_Slider.GetComponentInChildren<UILocalize>().UpdateText(key_name);

Unfortunately after updating NGUI, this UpdateText function is now gone, deleting this line means now the text no longer changes. Has this function been changed to something else?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UILocalize's UpdateText gone?
« Reply #1 on: August 23, 2012, 08:00:38 AM »
UILocalize.Localize().

ENAY

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 248
    • View Profile
Re: UILocalize's UpdateText gone?
« Reply #2 on: August 23, 2012, 08:14:16 AM »
Thanks :)