Struct XrSpatialUpdateSnapshotCreateInfoEXT
Creation info for spatial update snapshot, used by
xrCreateSpatialUpdateSnapshotEXT(ulong, in XrSpatialUpdateSnapshotCreateInfoEXT, out ulong).
Provided by XR_EXT_spatial_entity
.
Inherited Members
Namespace: UnityEngine.XR.OpenXR.NativeTypes
Assembly: Unity.XR.OpenXR.dll
Syntax
public readonly struct XrSpatialUpdateSnapshotCreateInfoEXT
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 SpatialUpdateSnapshotCreateInfoEXT.
Constructors
XrSpatialUpdateSnapshotCreateInfoEXT(uint, ulong*, uint, XrSpatialComponentTypeEXT*, ulong, long)
Construct an instance with a null
next pointer.
Declaration
public XrSpatialUpdateSnapshotCreateInfoEXT(uint entityCount, ulong* entities, uint componentTypeCount, XrSpatialComponentTypeEXT* componentTypes, ulong baseSpace, long time)
Parameters
Type | Name | Description |
---|---|---|
uint | entityCount | Count of elements in |
ulong* | entities | The entities to include in the update snapshot. |
uint | componentTypeCount | Count of elements in |
XrSpatialComponentTypeEXT* | componentTypes | The component types to include in the update snapshot. |
ulong | baseSpace | The base space of the update snapshot. |
long | time | The time of the update snapshot. |
XrSpatialUpdateSnapshotCreateInfoEXT(void*, uint, ulong*, uint, XrSpatialComponentTypeEXT*, ulong, long)
Construct an instance.
Declaration
public XrSpatialUpdateSnapshotCreateInfoEXT(void* next, uint entityCount, ulong* entities, uint componentTypeCount, XrSpatialComponentTypeEXT* componentTypes, ulong baseSpace, long time)
Parameters
Type | Name | Description |
---|---|---|
void* | next | The next pointer. |
uint | entityCount | Count of elements in |
ulong* | entities | The entities to include in the update snapshot. |
uint | componentTypeCount | Count of elements in |
XrSpatialComponentTypeEXT* | componentTypes | The component types to include in the update snapshot. |
ulong | baseSpace | The base space of the update snapshot. |
long | time | The time of the update snapshot. |
Properties
baseSpace
The XrSpace
relative to which all the locations of the update snapshot will be located.
Declaration
public ulong baseSpace { get; }
Property Value
Type | Description |
---|---|
ulong |
componentTypeCount
The count of elements in componentTypes.
Declaration
public uint componentTypeCount { get; }
Property Value
Type | Description |
---|---|
uint |
componentTypes
Pointer to an array of component types for which the runtime must include data in the snapshot.
Declaration
public XrSpatialComponentTypeEXT* componentTypes { get; }
Property Value
Type | Description |
---|---|
XrSpatialComponentTypeEXT* |
entities
Pointer to an array of spatial entities for which the runtime must include component data in the snapshot.
Declaration
public ulong* entities { get; }
Property Value
Type | Description |
---|---|
ulong* |
entityCount
The count of elements in entities.
Declaration
public uint entityCount { get; }
Property Value
Type | Description |
---|---|
uint |
next
null
or a pointer to the next structure in a structure chain.
No such structures are defined in core OpenXR or this extension.
Declaration
public void* next { get; }
Property Value
Type | Description |
---|---|
void* |
time
The time at which all the locations of the update snapshot will be located.
Declaration
public long time { get; }
Property Value
Type | Description |
---|---|
long |
type
The XrStructureType
of this struct:
SpatialUpdateSnapshotCreateInfoEXT.
Declaration
public XrStructureType type { get; }
Property Value
Type | Description |
---|---|
XrStructureType |