docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Enum XrSpatialBufferTypeEXT

    Represents the possible types of XrSpatialBufferEXT. Provided by XR_EXT_spatial_entity.

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

    Fields

    Name Description
    Float

    The buffer ID can be passed to OpenXRNativeApi.xrGetSpatialBufferFloatEXT to retrieve a float buffer. Equivalent to the OpenXR value XR_SPATIAL_BUFFER_TYPE_FLOAT_EXT.

    String

    The buffer ID can be passed to xrGetSpatialBufferStringEXT to retrieve a string buffer. Equivalent to the OpenXR value XR_SPATIAL_BUFFER_TYPE_STRING_EXT.

    Uint16

    The buffer ID can be passed to OpenXRNativeApi.xrGetSpatialBufferUint16EXT to retrieve a ushort buffer. Equivalent to the OpenXR value XR_SPATIAL_BUFFER_TYPE_UINT16_EXT.

    Uint32

    The buffer ID can be passed to OpenXRNativeApi.xrGetSpatialBufferUint32EXT to retrieve a uint buffer. Equivalent to the OpenXR value XR_SPATIAL_BUFFER_TYPE_UINT32_EXT.

    Uint8

    The buffer ID can be passed to OpenXRNativeApi.xrGetSpatialBufferUint8EXT to retrieve a byte buffer. Equivalent to the OpenXR value XR_SPATIAL_BUFFER_TYPE_UINT8_EXT.

    Unknown

    Unknown buffer type. Equivalent to the OpenXR value XR_SPATIAL_BUFFER_TYPE_UNKNOWN_EXT.

    Vector2f

    The buffer ID can be passed to OpenXRNativeApi.xrGetSpatialBufferVector2fEXT to retrieve an XrVector2f buffer. Equivalent to the OpenXR value XR_SPATIAL_BUFFER_TYPE_VECTOR2F_EXT.

    Vector3f

    The buffer ID can be passed to OpenXRNativeApi.xrGetSpatialBufferVector3fEXT to retrieve an XrVector3f buffer. Equivalent to the OpenXR value XR_SPATIAL_BUFFER_TYPE_VECTOR3F_EXT.

    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)