C# Class UnityEngine.Display

ファイルを表示 Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Public Properties

Property Type Description
displays UnityEngine.Display[]

Public Methods

Method 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

Method 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 method

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

public Activate ( ) : void
return void

Activate() public method

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.
return void

RelativeMouseAt() public static method

Query relative mouse coordinates.

public static RelativeMouseAt ( Vector3 inputMouseCoordinates ) : Vector3
inputMouseCoordinates Vector3 Mouse Input Position as Coordinates.
return Vector3

SetParams() public method

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).
return void

SetRenderingResolution() public method

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.
return 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
return UnityEngine.Display[]