docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct XrSpatialContextPersistenceConfigEXT

    Capability configuration struct for the persistence capability. Provided by XR_EXT_spatial_persistence.

    Namespace: UnityEngine.XR.OpenXR.NativeTypes
    Assembly: Unity.XR.OpenXR.dll
    Syntax
    public readonly struct XrSpatialContextPersistenceConfigEXT
    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 SpatialContextPersistenceConfigEXT.

    Constructors

    XrSpatialContextPersistenceConfigEXT(NativeArray<UInt64>)

    Construct an instance with a null next pointer from a native array.

    Declaration
    public XrSpatialContextPersistenceConfigEXT(NativeArray<UInt64> persistenceContexts)
    Parameters
    Type Name Description
    NativeArray<UInt64> persistenceContexts

    Native array of persistence contexts. Must be non-empty.

    XrSpatialContextPersistenceConfigEXT(ReadOnly)

    Construct an instance with a null next pointer from a read-only native array.

    Declaration
    public XrSpatialContextPersistenceConfigEXT(NativeArray<UInt64>.ReadOnly persistenceContexts)
    Parameters
    Type Name Description
    ReadOnly persistenceContexts

    Read-only native array of persistence contexts. Must be non-empty.

    XrSpatialContextPersistenceConfigEXT(uint, UInt64*)

    Construct an instance with a null next pointer.

    Declaration
    public XrSpatialContextPersistenceConfigEXT(uint persistenceContextCount, UInt64* persistenceContexts)
    Parameters
    Type Name Description
    uint persistenceContextCount

    The count of elements in persistenceContexts. Must be greater than 0.

    UInt64* persistenceContexts

    Pointer to an array of persistence contexts. Must be non-null.

    XrSpatialContextPersistenceConfigEXT(void*, NativeArray<UInt64>)

    Construct an instance from a native array.

    Declaration
    public XrSpatialContextPersistenceConfigEXT(void* next, NativeArray<UInt64> persistenceContexts)
    Parameters
    Type Name Description
    void* next

    The next pointer.

    NativeArray<UInt64> persistenceContexts

    Native array of persistence contexts. Must be non-empty.

    XrSpatialContextPersistenceConfigEXT(void*, ReadOnly)

    Construct an instance from a read-only native array.

    Declaration
    public XrSpatialContextPersistenceConfigEXT(void* next, NativeArray<UInt64>.ReadOnly persistenceContexts)
    Parameters
    Type Name Description
    void* next

    The next pointer.

    ReadOnly persistenceContexts

    Read-only native array of persistence contexts. Must be non-empty.

    XrSpatialContextPersistenceConfigEXT(void*, uint, UInt64*)

    Construct an instance.

    Declaration
    public XrSpatialContextPersistenceConfigEXT(void* next, uint persistenceContextCount, UInt64* persistenceContexts)
    Parameters
    Type Name Description
    void* next

    The next pointer.

    uint persistenceContextCount

    The count of elements in persistenceContexts. Must be greater than 0.

    UInt64* persistenceContexts

    Pointer to an array of persistence contexts. Must be non-null.

    Properties

    next

    null or a pointer to the next structure in a structure chain.

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

    persistenceContextCount

    The count of elements in persistenceContexts. Must be greater than 0.

    Declaration
    public uint persistenceContextCount { get; }
    Property Value
    Type Description
    uint

    persistenceContexts

    Pointer to an array of persistence contexts from which the spatial context can discover persisted entities. Must be non-null.

    Declaration
    public UInt64* persistenceContexts { get; }
    Property Value
    Type Description
    UInt64*

    type

    The XrStructureType of this struct: SpatialContextPersistenceConfigEXT.

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