Las Render Texturas son texturas que se pueden renderizar.
They can be used to implement image based rendering effects, dynamic shadows,
projectors, reflections or surveillance cameras.
One typical usage of render textures is setting them as the "target texture" property
of a Camera (Camera.targetTexture), this will make a camera render into a texture
instead of rendering to the screen.
Otro caso de uso es la implementación manual de varios efectos de renderizado, por ejemplo Image Effects. Allí a menudo se obtienen render textures temporales de corta duración (GetTemporary and ReleaseTemporary functions), y renderizan manualmente objetos en ellas (mire Graphics.DrawMeshNow y Graphics.Blit).
Keep in mind that render texture contents can become "lost" on certain events, like loading a new level, system going to a screensaver mode, in and out of fullscreen and so on.
When that happens, your existing render textures will become "not yet created" again,
you can check for that with IsCreated function.
See Also: Camera.targetTexture.
active | Render texture actualmente activa. |
antiAliasing | El nivel antialiasing para la RenderTexture. |
colorBuffer | Buffer de color de la render texture (Lectura solamente). |
depth | La precisión del buffer de profundidad de la render texture en bits (0, 16, 24 son compatibles). |
depthBuffer | Depth/stencil buffer de la render texture (lectura solamente). |
dimension | Dimensionalidad (tipo) de la render texture. |
enableRandomWrite | Habilita la escritura de acceso aleatoria a esta render texture en Shader Model 5.0 level shaders. |
format | El formato de color de la render texture. |
generateMips | Deberían los niveles mipmap ser generados automáticamente? |
height | La altura de la render texture en pixeles. |
sRGB | Esta render texture utiliza una conversión sRGB lectura/escritura (Lectura solamente). |
useMipMap | Utilizar mipmaps en una render texture? |
volumeDepth | Extensión de volumen de una render texture 3D. |
width | El ancho de la render texture en pixeles. |
RenderTexture | Crea un nuevo objeto RenderTexture. |
Create | En realidad crea la RenderTexture. |
DiscardContents | Descarta el contenido de la RenderTexture. |
GetNativeDepthBufferPtr | Recupera un apuntador (API gráfica subyacente) nativo al recurso del depth buffer. |
IsCreated | Es la render texture en realidad creada? |
MarkRestoreExpected | Indica que hay una operación de restauración RenderTexture esperada. |
Release | Suelta la RenderTexture. |
SetGlobalShaderProperty | Asigna esta RenderTexture como una propiedad global shader llamada propertyName. |
GetTemporary | Asigna una render texture temporal. |
ReleaseTemporary | Soltar una textura temporal asignada con GetTemporary. |
SupportsStencil | Esta RenderTexture tiene un stencil buffer? |
hideFlags | ¿Debería el objeto estar oculto, guardado con la escena o modificable por el usuario? |
name | El nombre del objeto. |
anisoLevel | Nivel de filtrado anisotrópico de la textura. |
dimension | Dimensionalidad (tipo) de la textura (lectura solamente). |
filterMode | Modo de filtrado de la textura. |
height | Altura de la textura en pixels. (Read Only) |
mipMapBias | Mip map bias de la textura. |
width | Anchura de la textura en píxeles. (Read Only) |
wrapMode | Modo wrap (Repeat o Clamp) de la textura. |
GetInstanceID | Devuelve el id de la instancia del objeto. |
ToString | Devuelve el nombre del objeto. |
GetNativeTexturePtr | Recupere un puntero nativo (API de gráficos subyacente) al recurso de textura. |
Destroy | Elimina un gameobject, componente o asset. |
DestroyImmediate | Destruye el objeto obj inmediatamente. |
DontDestroyOnLoad | Hace que el objeto target no sea destruido automáticamente cuando se cargue una nueva escena. |
FindObjectOfType | Devuelve el primer objeto activo cargado de tipo type. |
FindObjectsOfType | Devuelve una lista de todos los objetos activos cargados de tipo type. |
Instantiate | Devuelve una copia del objeto original. |
SetGlobalAnisotropicFilteringLimits | Establece límites anisotrópicos. |
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. |