C# Class UnityEngine.Display

Afficher le fichier Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Méthodes publiques

Свойство Type Description
displays UnityEngine.Display[]

Méthodes publiques

Méthode Description
Activate ( ) : void

Activate an external display. Eg. Secondary Monitors connected to the System.

Activate ( int width, int height, int refreshRate ) : void

This overloaded function available for Windows allows specifying desired Window Width, Height and Refresh Rate.

RelativeMouseAt ( Vector3 inputMouseCoordinates ) : Vector3

Query relative mouse coordinates.

SetParams ( int width, int height, int x, int y ) : void

Set rendering size and position on screen (Windows only).

SetRenderingResolution ( int w, int h ) : void

Sets rendering resolution for the display.

Private Methods

Méthode Description
ActivateDisplayImpl ( IntPtr nativeDisplay, int width, int height, int refreshRate ) : void
Display ( ) : System
Display ( IntPtr nativeDisplay ) : System
FireDisplaysUpdated ( ) : void
GetRenderingBuffersImpl ( IntPtr nativeDisplay, RenderBuffer &color, RenderBuffer &depth ) : void
GetRenderingExtImpl ( IntPtr nativeDisplay, int &w, int &h ) : void
GetSystemExtImpl ( IntPtr nativeDisplay, int &w, int &h ) : void
MultiDisplayLicense ( ) : bool
RecreateDisplayList ( IntPtr nativeDisplay ) : void
RelativeMouseAtImpl ( int x, int y, int &rx, int &ry ) : int
SetParamsImpl ( IntPtr nativeDisplay, int width, int height, int x, int y ) : void
SetRenderingResolutionImpl ( IntPtr nativeDisplay, int w, int h ) : void

Method Details

Activate() public méthode

Activate an external display. Eg. Secondary Monitors connected to the System.

public Activate ( ) : void
Résultat void

Activate() public méthode

This overloaded function available for Windows allows specifying desired Window Width, Height and Refresh Rate.

public Activate ( int width, int height, int refreshRate ) : void
width int Desired Width of the Window (for Windows only. On Linux and Mac uses Screen Width).
height int Desired Height of the Window (for Windows only. On Linux and Mac uses Screen Height).
refreshRate int Desired Refresh Rate.
Résultat void

RelativeMouseAt() public static méthode

Query relative mouse coordinates.

public static RelativeMouseAt ( Vector3 inputMouseCoordinates ) : Vector3
inputMouseCoordinates Vector3 Mouse Input Position as Coordinates.
Résultat Vector3

SetParams() public méthode

Set rendering size and position on screen (Windows only).

public SetParams ( int width, int height, int x, int y ) : void
width int Change Window Width (Windows Only).
height int Change Window Height (Windows Only).
x int Change Window Position X (Windows Only).
y int Change Window Position Y (Windows Only).
Résultat void

SetRenderingResolution() public méthode

Sets rendering resolution for the display.

public SetRenderingResolution ( int w, int h ) : void
w int Rendering width in pixels.
h int Rendering height in pixels.
Résultat void

Property Details

displays public_oe static_oe property

The list of currently connected Displays. Contains at least one (main) display.

public static Display[],UnityEngine displays
Résultat UnityEngine.Display[]