Struct XrSpatialComponentDataQueryConditionEXT
Represents a spatial component data query condition,
used by OpenXRNativeApi.xrQuerySpatialComponentDataEXT
. Provided by XR_EXT_spatial_entity
.
Inherited Members
Namespace: UnityEngine.XR.OpenXR.NativeTypes
Assembly: Unity.XR.OpenXR.dll
Syntax
public readonly struct XrSpatialComponentDataQueryConditionEXT
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 SpatialComponentDataQueryConditionEXT.
Constructors
XrSpatialComponentDataQueryConditionEXT(uint, XrSpatialComponentTypeEXT*)
Construct an instance with a null
next pointer.
Declaration
public XrSpatialComponentDataQueryConditionEXT(uint componentTypeCount, XrSpatialComponentTypeEXT* componentTypes)
Parameters
Type | Name | Description |
---|---|---|
uint | componentTypeCount | Count of elements in |
XrSpatialComponentTypeEXT* | componentTypes | Pointer to an array of component types, if componentTypeCount is
greater than |
See Also
XrSpatialComponentDataQueryConditionEXT(void*, uint, XrSpatialComponentTypeEXT*)
Construct an instance.
Declaration
public XrSpatialComponentDataQueryConditionEXT(void* next, uint componentTypeCount, XrSpatialComponentTypeEXT* componentTypes)
Parameters
Type | Name | Description |
---|---|---|
void* | next | The next pointer. |
uint | componentTypeCount | Count of elements in |
XrSpatialComponentTypeEXT* | componentTypes | Pointer to an array of component types, if componentTypeCount is
greater than |
See Also
XrSpatialComponentDataQueryConditionEXT(void*, NativeArray<XrSpatialComponentTypeEXT>)
Construct an instance from a NativeArray
.
Declaration
public XrSpatialComponentDataQueryConditionEXT(void* next, NativeArray<XrSpatialComponentTypeEXT> componentTypes)
Parameters
Type | Name | Description |
---|---|---|
void* | next | The next pointer. |
NativeArray<XrSpatialComponentTypeEXT> | componentTypes | The array of component types. |
See Also
XrSpatialComponentDataQueryConditionEXT(NativeArray<XrSpatialComponentTypeEXT>)
Construct an instance with a null
next pointer from a NativeArray
.
Declaration
public XrSpatialComponentDataQueryConditionEXT(NativeArray<XrSpatialComponentTypeEXT> componentTypes)
Parameters
Type | Name | Description |
---|---|---|
NativeArray<XrSpatialComponentTypeEXT> | componentTypes | The array of component types. |
See Also
Properties
componentTypeCount
The count of elements in componentTypes.
Declaration
public uint componentTypeCount { get; }
Property Value
Type | Description |
---|---|
uint |
See Also
componentTypes
Pointer to an array of component types for which to get the data from the snapshot.
Can be null
if componentTypeCount is 0
.
Declaration
public XrSpatialComponentTypeEXT* componentTypes { get; }
Property Value
Type | Description |
---|---|
XrSpatialComponentTypeEXT* |
See Also
next
null
or a pointer to the next structure in a structure chain.
Declaration
public void* next { get; }
Property Value
Type | Description |
---|---|
void* |
See Also
type
The XrStructureType
of this struct: SpatialComponentDataQueryConditionEXT.
Declaration
public XrStructureType type { get; }
Property Value
Type | Description |
---|---|
XrStructureType |