Author Topic: Desired resolution bigger than my monitor  (Read 4001 times)

will_brett

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 40
    • View Profile
Desired resolution bigger than my monitor
« on: April 03, 2014, 04:16:34 AM »
Hey everyone.

Run into a problem. Im working on a project that has the game running in portrait at quite a large resolution. 1200 x 1920 however my monitor screen resolution isnt that high so getting the NGUI UI set up is difficult. When I undock my game window and make it full screen it is still only 1906 x  987.

Any suggestions how I can get around this issue?

Thanks

will_brett

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 40
    • View Profile
Re: Desired resolution bigger than my monitor
« Reply #1 on: April 03, 2014, 05:31:16 AM »
I thought I had solved the issue by setting the min resolution to 1920 on the UI object. Which looks fine in Unity. But the second I built it to device its all wrong again. No idea whats going on as the nexus 7 v2 resolution is 1200 x 1920 so thats 1920 x 1200 in portait which is what Im working at (img 1) but then on the device it looks like (img 2).

Any help would really be appreciated.
« Last Edit: April 03, 2014, 05:44:44 AM by will_brett »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Desired resolution bigger than my monitor
« Reply #2 on: April 03, 2014, 08:53:39 PM »
You should just use a Fixed Size UIRoot rather than setting min/max in your case as you're targeting a specific resolution. When in doubt, NGUIDebug.Log the Screen.width and Screen.height.

will_brett

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 40
    • View Profile
Re: Desired resolution bigger than my monitor
« Reply #3 on: April 07, 2014, 10:07:35 AM »
Thanks I'll give that a go