Author Topic: Targeting a fixed resolution and disabling any scaling  (Read 1311 times)


  • Full Member
  • ***
  • Thank You
  • -Given: 2
  • -Receive: 4
  • Posts: 113
    • View Profile
Targeting a fixed resolution and disabling any scaling
« on: November 15, 2013, 12:12:19 AM »
Hi there!

First of all, thanks a lot for the gorgeous product, this is the first UI system on my memory that is such a breeze to work with. I've had a rather simple question about NGUI, though.

Right now I'm working on a project that will be targeting a very, very limited set of hardware, with absolutely predetermined display resolution (1920x1080). So I was curious if there is a way to completely disable of any and all NGUI elements in the Editor window, as it makes it pretty hard to preview how UI will look, especially when I'm working on a 1680x1050 monitor. I understand that in that case I won't get pixel perfect rendering in the editor window, and I realize that I will need to frequently use zoom in the scene view, but nevertheless, for this particular project I need the size of the screen to be completely set in stone, and elements constantly jumping around to fit to the changing editor viewports are complicating the work a bit.

I know there is a feature in UIRoot allowing me to lock the height of the screen, but as far as I understand, it won't guarantee a final and stable representation of UI as the window layout and proportions get shifted around.

[EDIT] Oh wait, I think that can be disregarded: I forgot about Game viewport aspect ratio lock, which, coupled with the height locking in UIRoot, forces the UI assume a proper width and thus shows it in the same way as in the final build. Nice.