C# Класс UnityEngine.Display

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
displays UnityEngine.Display[]

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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

Описание методов

Activate() публичный Метод

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

public Activate ( ) : void
Результат void

Activate() публичный Метод

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.
Результат void

RelativeMouseAt() публичный статический Метод

Query relative mouse coordinates.

public static RelativeMouseAt ( Vector3 inputMouseCoordinates ) : Vector3
inputMouseCoordinates Vector3 Mouse Input Position as Coordinates.
Результат Vector3

SetParams() публичный Метод

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).
Результат void

SetRenderingResolution() публичный Метод

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.
Результат void

Описание свойств

displays публичное статическое свойство

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

public static Display[],UnityEngine displays
Результат UnityEngine.Display[]