OpenXRSpatialQueryResultData
Inherits: OpenXRSpatialComponentData < RefCounted < Object
Description
Section titled “Description”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.
Methods
Section titled “Methods”| Returns | Method |
|---|---|
| int | get_capacity() const |
| int | get_entity_id(index: int) const |
| OpenXRSpatialEntityTracker.EntityTrackingState | get_entity_state(index: int) const |
Method descriptions
Section titled “Method descriptions”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.
