Version: 5.5

WebCamTexture

class in UnityEngine

/

Hereda de:Texture

Cambiar al Manual

Descripción

WebCam Textures are textures onto which the live video input is rendered.

Variables Estáticas

devicesDevuelve una lista de los dispositivos disponibles.

Variables

deviceNameSet this to specify the name of the device to use.
didUpdateThisFrameDid the video buffer update this frame?
isPlayingReturns if the camera is currently playing.
requestedFPSSet the requested frame rate of the camera device (in frames per second).
requestedHeightSet the requested height of the camera device.
requestedWidthSet the requested width of the camera device.
videoRotationAngleReturns an clockwise angle (in degrees), which can be used to rotate a polygon so camera contents are shown in correct orientation.
videoVerticallyMirroredReturns if the texture image is vertically flipped.

Constructores

WebCamTextureCreate a WebCamTexture.

Funciones Públicas

GetPixelDevuelve el color del píxel en las coordenadas (x, y).
GetPixelsGet a block of pixel colors.
GetPixels32Returns the pixels data in raw format.
PausePauses the camera.
PlayStarts the camera.
StopStops the camera.

Miembros heredados

Variables

hideFlags¿Debería el objeto estar oculto, guardado con la escena o modificable por el usuario?
nameEl nombre del objeto.
anisoLevelNivel de filtrado anisotrópico de la textura.
dimensionDimensionalidad (tipo) de la textura (lectura solamente).
filterModeModo de filtrado de la textura.
heightAltura de la textura en pixels. (Read Only)
mipMapBiasMip map bias de la textura.
widthAnchura de la textura en píxeles. (Read Only)
wrapModeModo wrap (Repeat o Clamp) de la textura.

Funciones Públicas

GetInstanceIDDevuelve el id de la instancia del objeto.
ToStringDevuelve el nombre del objeto.
GetNativeTexturePtrRecupere un puntero nativo (API de gráficos subyacente) al recurso de textura.

Funciones Estáticas

DestroyElimina un gameobject, componente o asset.
DestroyImmediateDestruye el objeto obj inmediatamente.
DontDestroyOnLoadHace que el objeto target no sea destruido automáticamente cuando se cargue una nueva escena.
FindObjectOfTypeDevuelve el primer objeto activo cargado de tipo type.
FindObjectsOfTypeDevuelve una lista de todos los objetos activos cargados de tipo type.
InstantiateClona el objeto original y devuelve el clon.
SetGlobalAnisotropicFilteringLimitsEstablece límites anisotrópicos.

Operadores

bool¿Existe el objeto?
operator !=Compare si dos objetos se refieren a un objeto diferente.
operator ==Compara dos referencias de objeto para ver si se refieren al mismo objeto.