Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: ENAY on August 23, 2012, 07:53:31 AM

Title: UILocalize's UpdateText gone?
Post by: ENAY 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?
Title: Re: UILocalize's UpdateText gone?
Post by: ArenMook on August 23, 2012, 08:00:38 AM
UILocalize.Localize().
Title: Re: UILocalize's UpdateText gone?
Post by: ENAY on August 23, 2012, 08:14:16 AM
Thanks :)