I was prototyping a UI element with NGUI yesterday and at first things were going great. Then at some point, the entire UI became scrambled when running in the editor with Maximize on Play. Now I don't know what that was all about, but eventually the UI showed up scrambled all the time.
I'm pretty new to Unity, though I do know how texture filtering works from my experience with doing XNA games, so I double checked that the atlas textures were set to point filtering/clamp/true color. If I set them to another texture filtering setting, the "scrambled" appearance would go away, but the UI would look fuzzy, as expected.
So after about an hour of changing every setting I could find, I finally stumbled onto something. If I set the UI camera's size to something like 1.01 or 1.001, everything goes back to pixel perfect. But I don't really know what that means. I have that hack in place, but ideally I'd like to know what's going on here. Since I don't know what's going on, I don't know if this is quirky Unity behavior, something I'm doing wrong in NGUI, or what.
Here's what my prototype UI element looks like with the camera size set to 1:
http://www.stevetack.com/misc/NGUI_CameraSize_1.pngAnd here's with the camera size set to 1.001:
http://www.stevetack.com/misc/NGUI_CameraSize_1.001.pngIdeas?
I do have the purchased version of NGUI and I think it's the latest version (or close to it).
Thanks!
On a side note, playing around with Unity has been a BLAST so far, and having access to add-ons like NGUI is a far cry from what I'm used to in the XNA world.