API reference
OpenXRSpatialQueryResultData
Inherits: OpenXRSpatialComponentData < Shared < Object
Object for storing the main query result data.
Description
Section titled “Description”Object for storing the main query result data when calling OpenXRSpatialEntityExtension.query_snapshot(). This must always be the first component requested.
Methods
Section titled “Methods”| Returns | Method |
|---|---|
| int | get_capacity() |
| int | get_entity_id(index) |
| OpenXRSpatialEntityTracker.EntityTrackingState | get_entity_state(index) |
Method descriptions
Section titled “Method descriptions”get_capacity
Section titled “get_capacity”int get_capacity() const
Returns the number of entities that were retrieved.
get_entity_id
Section titled “get_entity_id”int get_entity_id(index: int) const
Returns the entity id (XrSpatialEntityIdEXT) for the entity at this index.
get_entity_state
Section titled “get_entity_state”OpenXRSpatialEntityTracker.EntityTrackingState get_entity_state(index: int) const
Returns the entity state for the entity at this index.