Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: apparition on July 01, 2012, 03:05:54 PM
-
I've been working on getting my game to run in NaCl. I found that NGUI works almost perfectly in NaCl with one small change. In UIPanel NaCl needs to use the same code as Flash. Specifically, NaCl doesn't seem to support OrderedDictionary. The solution is to add a check for UNITY_NACL everywhere NGUI checks for UNITY_FLASH. :D
The only other issue I'm seeing now is that the speed of scrolling a UIDraggableCamera with the mouse wheel is off (way too fast in NaCl). I haven't looked into this yet. Either way, it's hardly a dealbreaker.
-
Hmm... Windward runs in NaCL without any changes, and it uses NGUI. Do NaCL implementations differ?
-
Good question... ??? I'm working with Unity 3.5.3f3 and a beta copy of Chrome 21.0.1180.15.
-
I was using 3.5.2 with the latest non-beta version of Chrome.
-
Well then... I switched to my other PC which still has Unity 3.5.2 and built a new copy of my test game. Guess what, it works fine with no changes to NGUI. Not only does OrderedDictionary seem to work fine in 3.5.2 but also other things like XmlDocument and the LINQ OrderBy function which are definitely not working in 3.5.3. :(
This is a bummer. I'll do some more research before I log a bug with Unity.