docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct XrSpatialPersistenceDataEXT

    The persistence component. Provided by XR_EXT_spatial_persistence.

    Implements
    IEquatable<XrSpatialPersistenceDataEXT>
    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 XrSpatialPersistenceDataEXT : IEquatable<XrSpatialPersistenceDataEXT>

    Constructors

    XrSpatialPersistenceDataEXT(XrUuid, XrSpatialPersistenceStateEXT)

    Construct an instance.

    Declaration
    public XrSpatialPersistenceDataEXT(XrUuid persistUuid, XrSpatialPersistenceStateEXT persistState)
    Parameters
    Type Name Description
    XrUuid persistUuid

    The unique identifier of the persisted entity.

    XrSpatialPersistenceStateEXT persistState

    The persistence state.

    Properties

    persistState

    The persistence state of the entity identified by persistUuid.

    Declaration
    public XrSpatialPersistenceStateEXT persistState { get; }
    Property Value
    Type Description
    XrSpatialPersistenceStateEXT

    persistUuid

    The unique identifier of the persisted entity.

    Declaration
    public XrUuid persistUuid { get; }
    Property Value
    Type Description
    XrUuid

    Methods

    Equals(object)

    Compares for equality. Two instances are equal if their persistId and persistState properties are equal.

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

    The other instance.

    Returns
    Type Description
    bool

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

    Overrides
    ValueType.Equals(object)

    Equals(XrSpatialPersistenceDataEXT)

    Compares for equality. Two instances are equal if their persistId and persistState properties are equal.

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

    The other instance.

    Returns
    Type Description
    bool

    true if the instances are equal. Otherwise, `false.

    GetHashCode()

    Generates 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)