docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    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.

    Extension Methods

    XRTextureTypeExtensions.IsRenderTexture(XRTextureType)
    XRTextureTypeExtensions.ToTextureDimension(XRTextureType)
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)