1
NGUI 3 Support / stackoverflow while broadcasting onlocalize message after setting a language
« on: January 27, 2015, 09:46:53 AM »
Hi! I updated to the latest ngui and now my game (already working with previous version of ngui) hangs on a stack overflow error (see attached log).
I'm still using the old way to load localization file (one file per language, with "key = value" syntax) and actually (since Localization went static) i have a static class (called Translate) that on initialization does this:
I really don't know why it cause a stack overflow error :\
I'm still using the old way to load localization file (one file per language, with "key = value" syntax) and actually (since Localization went static) i have a static class (called Translate) that on initialization does this:
- public static init() {
- Utils.setCultureInfo(CultureInfo.CurrentCulture);
- Localization.loadFunction = ( string path ) => {
- byte[] bytes = null;
- TextAsset asset = Resources.Load<TextAsset>("Languages/" + path);
- if ( asset != null ) bytes = asset.bytes;
- return bytes;
- };
- Localization.language = Application.systemLanguage;
- }
I really don't know why it cause a stack overflow error :\

We have windows phone 8 devices for testing!