Provides general information about the screen such as where the corners are in world units. Note: The world origin is in the middle of the screen. The provided world screen origin is the top left corner.
Static Public Member Functions | |
| static void | Clear () |
| Causes all settings here to be refreshed on the next update. More... | |
| static void | Update () |
| Checks if the screen size changed and repaints if it did. Called by UI.Update. More... | |
Static Public Attributes | |
| static int | ScreenX |
| The screen width in pixels. More... | |
| static int | ScreenY |
| The screen height in pixels. More... | |
| static float | ScreenYFloat |
| The height of the screen in pixels as a float. More... | |
| static string | ResolutionName |
| The current resolution name of the UI. More... | |
| static float | DepthDepreciation |
| How many pixels are gained/lost per unit depth on screen size. Varies with field of view. More... | |
| static float | ResolutionScale =1f |
| The current resolution scale of the UI. More... | |
| static Vector2 | WorldSize =Vector2.zero |
| The height/width of the screen in world units at zero depth. More... | |
| static Vector2 | WorldPerPixel =Vector2.zero |
| The amount of world units per screen pixel at zero depth. More... | |
| static Vector3 | WorldScreenOrigin =Vector3.zero |
| The location of the screen origin (top left corner) in world units at zero depth. More... | |
Properties | |
| static ResolutionInfo | Resolution [get, set] |
| The current resolution of the UI. More... | |
Static Private Attributes | |
| static ResolutionInfo | CurrentResolution |
| The current resolution of this document. More... | |
|
inlinestatic |
Causes all settings here to be refreshed on the next update.
|
inlinestatic |
Checks if the screen size changed and repaints if it did. Called by UI.Update.
|
staticprivate |
The current resolution of this document.
|
static |
How many pixels are gained/lost per unit depth on screen size. Varies with field of view.
|
static |
The current resolution name of the UI.
|
static |
The current resolution scale of the UI.
|
static |
The screen width in pixels.
|
static |
The screen height in pixels.
|
static |
The height of the screen in pixels as a float.
|
static |
The amount of world units per screen pixel at zero depth.
|
static |
The location of the screen origin (top left corner) in world units at zero depth.
|
static |
The height/width of the screen in world units at zero depth.
|
staticgetset |
The current resolution of the UI.