Author Topic: Localized UIInput  (Read 3282 times)

SimonW

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 4
    • View Profile
Localized UIInput
« on: July 16, 2012, 05:21:00 AM »
I had a problem with UIInput not working with localized text, because mDefaultText was still set to the pre-localized value.  I fixed it by making UIInput.Init() public, and adding the following lines to the bottom of UILocalize.OnLocalize:
  1. UIInput parentInput = transform.parent.GetComponent<UIInput>();
  2. if (parentInput) parentInput.Init();

I thought I'd leave this here in case this helps anyone else, or if there's a better solution someone can point me to.
« Last Edit: July 23, 2012, 08:20:21 AM by SimonW »