Enum XRTextureType
Represents a texture's dimension and whether it was created as a RenderTexture.
This enum extends TextureDimension by removing values that are not supported by AR Foundation and adding values to represent render textures.
Namespace: UnityEngine.XR.ARSubsystems
Assembly: Unity.XR.ARSubsystems.dll
Syntax
public enum XRTextureType
Fields
| Name | Description |
|---|---|
| ColorRenderTexture | The texture is of type RenderTexture with texture data assigned to colorBuffer. |
| ColorRenderTextureRef | A reference to an existing RenderTexture with texture data assigned to colorBuffer. |
| Cube | The texture is of type Cubemap. |
| DepthRenderTexture | The texture is of type RenderTexture with texture data assigned to depthBuffer. |
| DepthRenderTextureRef | A reference to an existing RenderTexture with texture data assigned to depthBuffer. |
| None | There is no texture type. This enum may be uninitialized. |
| Texture2D | The texture is of type Texture2D. |
| Texture3D | The texture is of type Texture3D. |
| Unknown | The texture type is unknown. |