Skip to content
Download
API reference

OpenXRSpatialQueryResultData

Inherits: OpenXRSpatialComponentData < Shared < 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.

ReturnsMethod
intget_capacity()
intget_entity_id(index)
OpenXRSpatialEntityTracker.EntityTrackingStateget_entity_state(index)

int get_capacity() const

Returns the number of entities that were retrieved.

int get_entity_id(index: int) const

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

OpenXRSpatialEntityTracker.EntityTrackingState get_entity_state(index: int) const

Returns the entity state for the entity at this index.