Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
OpenXRSpatialQueryResultData
实验性: This class may be changed or removed in future versions.
继承: OpenXRSpatialComponentData < RefCounted < Object
用于存储主查询结果数据的对象。
描述
调用 OpenXRSpatialEntityExtension.query_snapshot() 时,用于存储主查询结果数据的对象。这必须始终是请求的第一个组件。
方法
get_capacity() const |
|
get_entity_id(index: int) const |
|
get_entity_state(index: int) const |
方法说明
返回已检索到的实体数量。
int get_entity_id(index: int) const 🔗
返回位于该 index 的实体的实体 ID(XrSpatialEntityIdEXT)。
EntityTrackingState get_entity_state(index: int) const 🔗
返回该 index 处实体的实体状态。