Author Topic: UI Scaling problem  (Read 4078 times)

Bradamante3D

  • Jr. Member
  • **
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 79
    • View Profile
UI Scaling problem
« on: July 14, 2013, 01:33:16 PM »
Hi,

I just ran into a problem in my game using NGUI. I have a GUI with a 2D UI Root with Ortho Camera, while my game camera is Perspective. The setting on the UI Root is PixelPerfect.

Let's say my UI element is 240x200. On my 1920x1200 monitor it shows up fine (w/ PixelPerfect). On my 1400x900 notebook the UI elements stay that size (which I guess is the supposed behavior), so no the game is unplayable thanks to overlapping UI elements.

So on both computers I tried changing PixelPerfect to FixedSize. Now, all elements on my 1920x1200 monitor are larger, like maybe 2x as large. Question: Do I now have to go through all my GUI elements (and that's a lot!) and scale them down? Question: Shouldn't PixelPerfect and FixedSize look the same on my 1920x1200 reference monitor?

Just in case it matters: Manual Height: 720, Minimum Height: 320, Maximum Height: 1536.

Thx
#301224014, #301432336, #302399130

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UI Scaling problem
« Reply #1 on: July 14, 2013, 07:26:31 PM »
Set your Manual Height to 1200, matching the height of your original monitor.