C# Class UnityEngine.WebCamTexture

Inheritance: Texture
显示文件 Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Private Properties

Property Type Description
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

Public Methods

Method Description
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.

Private Methods

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

Method Details

GetPixel() public method

Returns pixel color at coordinates (x, y).

public GetPixel ( int x, int y ) : Color
x int
y int
return Color

GetPixels() public method

Get a block of pixel colors.

public GetPixels ( ) : UnityEngine.Color[]
return UnityEngine.Color[]

Pause() public method

Pauses the camera.

public Pause ( ) : void
return void

Play() public method

Starts the camera.

public Play ( ) : void
return void

Stop() public method

Stops the camera.

public Stop ( ) : void
return void

WebCamTexture() public method

Create a WebCamTexture.

public WebCamTexture ( ) : System
return System

WebCamTexture() public method

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

WebCamTexture() public method

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

WebCamTexture() public method

Create a WebCamTexture.

public WebCamTexture ( string deviceName ) : System
deviceName string The name of the video input device to be used.
return System

WebCamTexture() public method

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

WebCamTexture() public method

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