WebCamTexture.WebCamTexture
WebCamTexture()
WebCamTexture();
def WebCamTexture()
WebCamTexture(requestedWidth: int, requestedHeight: int, requestedFPS: int)
WebCamTexture(int requestedWidth, int requestedHeight, int requestedFPS);
def WebCamTexture(requestedWidth as int, requestedHeight as int, requestedFPS as int)
WebCamTexture(requestedWidth: int, requestedHeight: int)
WebCamTexture(int requestedWidth, int requestedHeight);
def WebCamTexture(requestedWidth as int, requestedHeight as int)
WebCamTexture(deviceName: string)
WebCamTexture(string deviceName);
def WebCamTexture(deviceName as string)
WebCamTexture(deviceName: string, requestedWidth: int, requestedHeight: int)
WebCamTexture(string deviceName, int requestedWidth, int requestedHeight);
def WebCamTexture(deviceName as string, requestedWidth as int, requestedHeight as int)
WebCamTexture(deviceName: string, requestedWidth: int, requestedHeight: int, requestedFPS: int)
WebCamTexture(string deviceName, int requestedWidth, int requestedHeight, int requestedFPS);
def WebCamTexture(deviceName as string, requestedWidth as int, requestedHeight as int, requestedFPS as int)
Parameters

deviceName The name of the video input device to be used.
requestedWidth The requested width of the texture.
requestedHeight The requested height of the texture.
requestedFPS The requested frame rate of the texture.
Description

Create a WebCamTexture.

Use WebCamTexture.devices to get a list of the names of available camera devices. If no device name is supplied to the constructor or is passed as a null string, the first device found will be used.

The requested width, height and framerate specified by the parameters may not be supported by the chosen camera. In such cases, the closest available values will be used.

Note that if you want to use WebCamTextures in the web player, you need to get the user's permission to do so. Call Application.RequestUserAuthorization before creating a WebCamTexture.