docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct XrSpatialEntityPersistInfoEXT

    The persist info struct used by xrPersistSpatialEntityAsyncEXT(ulong, in XrSpatialEntityPersistInfoEXT, out ulong). Provided by XR_EXT_persistence_operations.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    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 XrSpatialEntityPersistInfoEXT
    Remarks
    Warning

    Don't initialize this struct with the default parameterless constructor. Use a constructor with parameters to ensure that type is correctly initialized to SpatialEntityPersistInfoEXT.

    Constructors

    XrSpatialEntityPersistInfoEXT(ulong, ulong)

    Construct an instance with a null next pointer.

    Declaration
    public XrSpatialEntityPersistInfoEXT(ulong spatialContext, ulong spatialEntityId)
    Parameters
    Type Name Description
    ulong spatialContext

    The spatial context to which the entity defined by spatialEntityId belongs.

    ulong spatialEntityId

    The ID of the spatial entity to persist.

    XrSpatialEntityPersistInfoEXT(void*, ulong, ulong)

    Construct an instance.

    Declaration
    public XrSpatialEntityPersistInfoEXT(void* next, ulong spatialContext, ulong spatialEntityId)
    Parameters
    Type Name Description
    void* next

    The next pointer.

    ulong spatialContext

    The spatial context to which the entity defined by spatialEntityId belongs.

    ulong spatialEntityId

    The ID of the spatial entity to persist.

    Properties

    next

    null or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or XR_EXT_spatial_persistence_operations.

    Declaration
    public void* next { get; }
    Property Value
    Type Description
    void*

    spatialContext

    The spatial context to which the entity defined by spatialEntityId belongs.

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

    spatialEntityId

    The ID of the spatial entity to persist.

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

    type

    The XrStructureType of this struct: SpatialEntityPersistInfoEXT.

    Declaration
    public XrStructureType type { get; }
    Property Value
    Type Description
    XrStructureType
    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)