Struct XrSpatialComponentDataQueryResultEXT
Represents the result of the OpenXRNativeApi.xrQuerySpatialComponentDataEXT
operation.
Provided by XR_EXT_spatial_entity
.
Inherited Members
Namespace: UnityEngine.XR.OpenXR.NativeTypes
Assembly: Unity.XR.OpenXR.dll
Syntax
public struct XrSpatialComponentDataQueryResultEXT
Remarks
Warning
Don't initialize this struct with the default parameterless constructor. Use either defaultValue or a constructor with parameters to ensure that type is correctly initialized to SpatialComponentDataQueryResultEXT.
Constructors
XrSpatialComponentDataQueryResultEXT(uint, uint, ulong*, uint, uint, XrSpatialEntityTrackingStateEXT*)
Construct an instance with a null
next pointer.
Declaration
public XrSpatialComponentDataQueryResultEXT(uint entityIdCapacityInput, uint entityIdCountOutput, ulong* entityIds, uint entityStateCapacityInput, uint entityStateCountOutput, XrSpatialEntityTrackingStateEXT* entityStates)
Parameters
Type | Name | Description |
---|---|---|
uint | entityIdCapacityInput | The entity ID capacity input. |
uint | entityIdCountOutput | The entity ID count output. |
ulong* | entityIds | The entity IDs. |
uint | entityStateCapacityInput | The entity state capacity input. |
uint | entityStateCountOutput | The entity state capacity output. |
XrSpatialEntityTrackingStateEXT* | entityStates | The entity states. |
See Also
XrSpatialComponentDataQueryResultEXT(void*, uint, uint, ulong*, uint, uint, XrSpatialEntityTrackingStateEXT*)
Construct an instance.
Declaration
public XrSpatialComponentDataQueryResultEXT(void* next, uint entityIdCapacityInput, uint entityIdCountOutput, ulong* entityIds, uint entityStateCapacityInput, uint entityStateCountOutput, XrSpatialEntityTrackingStateEXT* entityStates)
Parameters
Type | Name | Description |
---|---|---|
void* | next | The next pointer. |
uint | entityIdCapacityInput | The entity ID capacity input. |
uint | entityIdCountOutput | The entity ID count output. |
ulong* | entityIds | The entity IDs. |
uint | entityStateCapacityInput | The entity state capacity input. |
uint | entityStateCountOutput | The entity state capacity output. |
XrSpatialEntityTrackingStateEXT* | entityStates | The entity states. |
See Also
Properties
defaultValue
Get a default instance with an initialized type property.
Declaration
public static XrSpatialComponentDataQueryResultEXT defaultValue { get; }
Property Value
Type | Description |
---|---|
XrSpatialComponentDataQueryResultEXT |
See Also
entityIdCapacityInput
The capacity of the entityIds array.
Declaration
public uint entityIdCapacityInput { readonly get; set; }
Property Value
Type | Description |
---|---|
uint |
See Also
entityIdCountOutput
The count of elements in entityIds, or the required capacity if entityIdCapacityInput is insufficient.
Declaration
public uint entityIdCountOutput { readonly get; set; }
Property Value
Type | Description |
---|---|
uint |
See Also
entityIds
Pointer to an array of spatial entity IDs. Can be null
if entityIdCapacityInput is 0
.
Declaration
public ulong* entityIds { readonly get; set; }
Property Value
Type | Description |
---|---|
ulong* |
See Also
entityStateCapacityInput
The capacity of the entityStates array.
Declaration
public uint entityStateCapacityInput { readonly get; set; }
Property Value
Type | Description |
---|---|
uint |
See Also
entityStateCountOutput
The count of elements in entityStates, or the required capacity if entityIdCapacityInput is insufficient.
Declaration
public uint entityStateCountOutput { readonly get; set; }
Property Value
Type | Description |
---|---|
uint |
See Also
entityStates
Pointer to an array of spatial entity tracking states.
Can be null
if entityStateCapacityInput is 0
.
Declaration
public XrSpatialEntityTrackingStateEXT* entityStates { readonly get; set; }
Property Value
Type | Description |
---|---|
XrSpatialEntityTrackingStateEXT* |
See Also
next
null
or a pointer to the next structure in a structure chain.
Declaration
public void* next { readonly get; set; }
Property Value
Type | Description |
---|---|
void* |
See Also
type
The XrStructureType
of this struct: SpatialComponentDataQueryResultEXT.
Declaration
public readonly XrStructureType type { get; }
Property Value
Type | Description |
---|---|
XrStructureType |