Author Topic: Forcing a UILocalize component to localize  (Read 1486 times)

rain

  • Jr. Member
  • **
  • Thank You
  • -Given: 2
  • -Receive: 4
  • Posts: 79
    • View Profile
Forcing a UILocalize component to localize
« on: February 20, 2014, 09:03:18 AM »
Hi!

Before 3.5.0, i could force specific UILocalize script instances to relocalize themselves by calling .Localize() on them.
This seems to have disappeared in the latest version, what's the new approach?

Thanks in advance!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Forcing a UILocalize component to localize
« Reply #1 on: February 20, 2014, 09:19:19 AM »
  1. UILocalize loc = GetComponent<UILocalize>();
  2. loc.value = Localization.Get(loc.key);