Skip to content

OpenXRSpatialQueryResultData

Inherits: OpenXRSpatialComponentData < RefCounted < Object

Object for storing the main query result data.

Object for storing the main query result data when calling OpenXRSpatialEntityExtension.query_snapshot(). This must always be the first component requested.

Returns Method
int get_capacity() const
int get_entity_id(index: int) const
OpenXRSpatialEntityTracker.EntityTrackingState get_entity_state(index: int) const

get_capacity

int get_capacity() const

Returns the number of entities that were retrieved.

get_entity_id

int get_entity_id(index: int) const

Returns the entity id (XrSpatialEntityIdEXT) for the entity at this index.

get_entity_state

OpenXRSpatialEntityTracker.EntityTrackingState get_entity_state(index: int) const

Returns the entity state for the entity at this index.