Hello.
I'm kind of a newbie to Unity and to NGUI. I've been using Unity for close to a year now, off and on. However, I'm not new to C# programming.
That said... I can't for the *life* of me figure out how to keep a consistent aspect ratio among different Android devices for a game we're designing with NGUI.
For whatever reason, everything looks fine in the editor. But when I build it and run it on my devices (mainly a Samsung Galaxy S3 on Kitkat 4.4.2 with the Hellkat ROM, but other devices exhibit same problem), part of (but not all!) of my UI is stretched and totally incorrect. I've been through the forums, looked for answers, but my trouble seems fairly unique. I do not have MTR enabled, and I am not emulating OpenGL. I'm using Unity 4.5.5.f1 and NGUI 3.6.8.
As a more detailed example, to be specific, I have an ammo slider bar at the bottom of the screen, and a fire button. They're fine in the editor but HUGE on the cell phone, the button takes up the bottom 1/4 of the screen and you can only see the tip of the ammo bar. They function properly but do not scale correctly. Further, I have a game over screen that comes up when the losing condition is met. The background and labels are too large just as the button and slider are... most of it cannot be seen. Yet, it looks right in the editor. As a final example, the camera that points at the main playing area (picture an infinite runner) seems to catch a different amount of the playing area among different devices. That is, my Samsung catches like 80% of the area, another designer on the team has a different device that gets about 70-75%, etc... why is this (if you can tell me), and is this related to my other problems?
I have tried playing with it and picking at it myself, in the code. But it's been fruitless. Please help. I am willing to do whatever it takes to get this fixed, and will work back and forth over the forums until my fingers wear off from typing if I have to. Lol. Any and all consideration is appreciated! Thank you!