Author Topic: screen dimensions  (Read 1192 times)

Fractalbase

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 23
    • View Profile
screen dimensions
« on: June 16, 2014, 05:17:47 PM »
Is there a way to query for x&y screen dimensions, and to set those dimensions programmatically?

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: screen dimensions
« Reply #1 on: June 17, 2014, 05:37:22 AM »
http://docs.unity3d.com/ScriptReference/Screen.html

The UIRoot sets up the virtual pixels for NGUI, so you can mess with manualHeight there, to map the virtual pixels differently to real pixels.