Struct XrSpatialEntityPersistInfoEXT
The persist info struct used by xrPersistSpatialEntityAsyncEXT(ulong, in XrSpatialEntityPersistInfoEXT, out ulong).
Provided by XR_EXT_persistence_operations
.
Inherited Members
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
|
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
|
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 |