Author Topic: How to set path to localization file?  (Read 3269 times)

DevMan5000

  • Newbie
  • *
  • Thank You
  • -Given: 4
  • -Receive: 0
  • Posts: 22
    • View Profile
How to set path to localization file?
« on: September 21, 2014, 02:45:25 PM »
Hi, noob question here, how do I set the localization file path so that it is recognized both while in the editor and in-game?

Right now it points to Resources/Localization. I had to delete both NGUI/Resources/Localization.csv and NGUI/Examples/Resources/Localization.txt in order to get my own csv file in a new Resources folder to actually take.

I guess what I am asking is how would I get the game to read from MyProject/Resources/Localization/myLocFile.csv?

thanks

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: How to set path to localization file?
« Reply #1 on: September 22, 2014, 10:08:57 AM »
You'll need to modify the Localization.cs script. It's coded to just do Resources.Load("Localization").