docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct XrSpatialBufferEXT

    Represents of buffer of variable-sized data contained in spatial component. Provided by XR_EXT_spatial_entity.

    Implements
    IEquatable<XrSpatialBufferEXT>
    Inherited Members
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.XR.OpenXR.NativeTypes
    Assembly: Unity.XR.OpenXR.dll
    Syntax
    public readonly struct XrSpatialBufferEXT : IEquatable<XrSpatialBufferEXT>

    Constructors

    XrSpatialBufferEXT(ulong, XrSpatialBufferTypeEXT)

    Construct an instance.

    Declaration
    public XrSpatialBufferEXT(ulong bufferId, XrSpatialBufferTypeEXT bufferType)
    Parameters
    Type Name Description
    ulong bufferId

    The buffer ID.

    XrSpatialBufferTypeEXT bufferType

    The buffer type.

    Properties

    bufferId

    The ID of the buffer.

    Declaration
    public ulong bufferId { get; }
    Property Value
    Type Description
    ulong

    bufferType

    The type of data contained in the buffer, used to determine which method to call to retrieve the data.

    Declaration
    public XrSpatialBufferTypeEXT bufferType { get; }
    Property Value
    Type Description
    XrSpatialBufferTypeEXT

    Methods

    Equals(object)

    Compares for equality. Two instances are equal if they share the same buffer ID and buffer type.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    object obj

    The other object.

    Returns
    Type Description
    bool

    true if obj is an XrSpatialBufferEXT and equal to this instance. Otherwise, false.

    Overrides
    ValueType.Equals(object)

    Equals(XrSpatialBufferEXT)

    Compares for equality. Two instances are equal if they share the same buffer ID and buffer type.

    Declaration
    public bool Equals(XrSpatialBufferEXT other)
    Parameters
    Type Name Description
    XrSpatialBufferEXT other

    The other instance.

    Returns
    Type Description
    bool

    true if the instances are equal. Otherwise, false.

    GetHashCode()

    Generate a unique hash code for this instance.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    The hash code.

    Overrides
    ValueType.GetHashCode()

    Implements

    IEquatable<T>
    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)