Struct XrSpatialContextPersistenceConfigEXT
Capability configuration struct for the persistence capability.
Provided by XR_EXT_spatial_persistence
.
Inherited Members
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(uint, ulong*)
Construct an instance with a null
next pointer.
Declaration
public XrSpatialContextPersistenceConfigEXT(uint persistenceContextCount, ulong* persistenceContexts)
Parameters
Type | Name | Description |
---|---|---|
uint | persistenceContextCount | The count of elements in |
ulong* | persistenceContexts | Pointer to an array of persistence contexts. Must be non-null. |
XrSpatialContextPersistenceConfigEXT(void*, uint, ulong*)
Construct an instance.
Declaration
public XrSpatialContextPersistenceConfigEXT(void* next, uint persistenceContextCount, ulong* persistenceContexts)
Parameters
Type | Name | Description |
---|---|---|
void* | next | The next pointer. |
uint | persistenceContextCount | The count of elements in |
ulong* | persistenceContexts | Pointer to an array of persistence contexts. Must be non-null. |
XrSpatialContextPersistenceConfigEXT(void*, NativeArray<ulong>)
Construct an instance from a native array.
Declaration
public XrSpatialContextPersistenceConfigEXT(void* next, NativeArray<ulong> persistenceContexts)
Parameters
Type | Name | Description |
---|---|---|
void* | next | The next pointer. |
NativeArray<ulong> | persistenceContexts | Native array of persistence contexts. Must be non-empty. |
XrSpatialContextPersistenceConfigEXT(NativeArray<ulong>)
Construct an instance with a null
next pointer from a native array.
Declaration
public XrSpatialContextPersistenceConfigEXT(NativeArray<ulong> persistenceContexts)
Parameters
Type | Name | Description |
---|---|---|
NativeArray<ulong> | persistenceContexts | Native array of persistence contexts. Must be non-empty. |
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 ulong* persistenceContexts { get; }
Property Value
Type | Description |
---|---|
ulong* |
type
The XrStructureType
of this struct: SpatialContextPersistenceConfigEXT.
Declaration
public XrStructureType type { get; }
Property Value
Type | Description |
---|---|
XrStructureType |