C# Класс UnityEngine.WebCamTexture

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

Private Properties

Свойство Тип Описание
GetPixels UnityEngine.Color[]
GetPixels32 UnityEngine.Color32[]
GetPixels32 UnityEngine.Color32[]
INTERNAL_CALL_GetPixel void
INTERNAL_CALL_Pause void
INTERNAL_CALL_Play void
INTERNAL_CALL_Stop void
Internal_CreateWebCamTexture void
MarkNonReadable void

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

Метод Описание
GetPixel ( int x, int y ) : Color

Returns pixel color at coordinates (x, y).

GetPixels ( ) : UnityEngine.Color[]

Get a block of pixel colors.

Pause ( ) : void

Pauses the camera.

Play ( ) : void

Starts the camera.

Stop ( ) : void

Stops the camera.

WebCamTexture ( ) : System

Create a WebCamTexture.

WebCamTexture ( int requestedWidth, int requestedHeight ) : System

Create a WebCamTexture.

WebCamTexture ( int requestedWidth, int requestedHeight, int requestedFPS ) : System

Create a WebCamTexture.

WebCamTexture ( string deviceName ) : System

Create a WebCamTexture.

WebCamTexture ( string deviceName, int requestedWidth, int requestedHeight ) : System

Create a WebCamTexture.

WebCamTexture ( string deviceName, int requestedWidth, int requestedHeight, int requestedFPS ) : System

Create a WebCamTexture.

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

Метод Описание
GetPixels ( int x, int y, int blockWidth, int blockHeight ) : UnityEngine.Color[]
GetPixels32 ( ) : UnityEngine.Color32[]
GetPixels32 ( [ colors ) : UnityEngine.Color32[]
INTERNAL_CALL_GetPixel ( WebCamTexture self, int x, int y, Color &value ) : void
INTERNAL_CALL_Pause ( WebCamTexture self ) : void
INTERNAL_CALL_Play ( WebCamTexture self ) : void
INTERNAL_CALL_Stop ( WebCamTexture self ) : void
Internal_CreateWebCamTexture ( [ self, string scriptingDevice, int requestedWidth, int requestedHeight, int maxFramerate ) : void
MarkNonReadable ( ) : void

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

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

Returns pixel color at coordinates (x, y).

public GetPixel ( int x, int y ) : Color
x int
y int
Результат Color

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

Get a block of pixel colors.

public GetPixels ( ) : UnityEngine.Color[]
Результат UnityEngine.Color[]

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

Pauses the camera.

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

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

Starts the camera.

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

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

Stops the camera.

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

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

Create a WebCamTexture.

public WebCamTexture ( ) : System
Результат System

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

Create a WebCamTexture.

public WebCamTexture ( int requestedWidth, int requestedHeight ) : System
requestedWidth int The requested width of the texture.
requestedHeight int The requested height of the texture.
Результат System

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

Create a WebCamTexture.

public WebCamTexture ( int requestedWidth, int requestedHeight, int requestedFPS ) : System
requestedWidth int The requested width of the texture.
requestedHeight int The requested height of the texture.
requestedFPS int The requested frame rate of the texture.
Результат System

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

Create a WebCamTexture.

public WebCamTexture ( string deviceName ) : System
deviceName string The name of the video input device to be used.
Результат System

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

Create a WebCamTexture.

public WebCamTexture ( string deviceName, int requestedWidth, int requestedHeight ) : System
deviceName string The name of the video input device to be used.
requestedWidth int The requested width of the texture.
requestedHeight int The requested height of the texture.
Результат System

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

Create a WebCamTexture.

public WebCamTexture ( string deviceName, int requestedWidth, int requestedHeight, int requestedFPS ) : System
deviceName string The name of the video input device to be used.
requestedWidth int The requested width of the texture.
requestedHeight int The requested height of the texture.
requestedFPS int The requested frame rate of the texture.
Результат System