Class for handling Cubemap arrays.
Modern graphics APIs (e.g. D3D10.1 and later, OpenGL 4.0 and later, Metal on macOS, PS4) support "cubemap arrays",
which are arrays of same size & format cubemaps. From the shader side, they are treated as a single resource, and sampling
them needs an extra coordinate that indicates which array element to sample from.
Typically cubemap arrays are useful for implementing efficient reflection probe, lighting and shadowing systems
(all reflection/cookie/shadow cubemaps in a single array).
Cubemap arrays do not have an import pipeline for them, and must be created from code, either at runtime or in editor
scripts. Using Graphics.CopyTexture is useful for fast copying of pixel data from regular Cubemap textures into
elements of a cubemap array. From editor scripts, a common way of creating serialized cubemap array is to create it,
fill with data (either via Graphics.CopyTexture from regular cubemaps, or via SetPixels or
SetPixels32) and save it as an asset via AssetDatabase.CreateAsset.
Note that not all platforms and GPUs support cubemap arrays; for example none of the mobile APIs/GPUs currently support them. Use SystemInfo.supportsCubemapArrayTextures to check.
cubemapCount | Number of cubemaps in the array (Read Only). |
format | Formato de Textura (Lectura solamente). |
CubemapArray | Create a new cubemap array. |
Apply | Realmente aplica todos los cambios previos SetPixels. |
GetPixels | Returns pixel colors of a single array slice/face. |
GetPixels32 | Returns pixel colors of a single array slice/face. |
SetPixels | Set pixel colors for a single array slice/face. |
SetPixels32 | Set pixel colors for a single array slice/face. |
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 | Texture coordinate wrapping mode. |
wrapModeU | Texture U coordinate wrapping mode. |
wrapModeV | Texture V coordinate wrapping mode. |
wrapModeW | Texture W coordinate wrapping mode for Texture3D. |
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 | Destroys the object obj immediately. You are strongly recommended to use Destroy instead. |
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 | Clona el objeto original y devuelve el clon. |
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. |