docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Enum XrSpatialReferenceImageFormatEXT

    Identifies a reference image format supported by the runtime for image tracking. Provided by XR_EXT_spatial_image_tracking.

    Namespace: UnityEngine.XR.OpenXR.NativeTypes
    Assembly: Unity.XR.OpenXR.dll
    Syntax
    public enum XrSpatialReferenceImageFormatEXT
    Remarks

    A runtime that supports XR_EXT_spatial_image_tracking is required to enumerate at least RGBA_8888 and RGB_888.

    Fields

    Name Description
    RGBA_8888

    Four-channel 8-bit-per-channel red/green/blue/alpha. Always supported. Equivalent to the OpenXR value XR_SPATIAL_REFERENCE_IMAGE_FORMAT_RGBA_8888_EXT.

    RGB_888

    Three-channel 8-bit-per-channel red/green/blue. Always supported. Equivalent to the OpenXR value XR_SPATIAL_REFERENCE_IMAGE_FORMAT_RGB_888_EXT.

    YUV_420_888

    Planar YUV 4:2:0 with 8 bits per channel. May not be supported. Equivalent to the OpenXR value XR_SPATIAL_REFERENCE_IMAGE_FORMAT_YUV_420_888_EXT.

    In This Article
    Back to top
    Copyright © 2026 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)