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...
OpenXRSpatialComponentMarkerList
实验性: This class may be changed or removed in future versions.
继承: OpenXRSpatialComponentData < RefCounted < Object
用于存储查询标记结果数据的对象。
描述
用于调用 OpenXRSpatialEntityExtension.query_snapshot() 时存储查询标记结果数据的对象。
方法
get_marker_data(snapshot: RID, index: int) const |
|
get_marker_id(index: int) const |
|
get_marker_type(index: int) const |
枚举
enum MarkerType: 🔗
MarkerType MARKER_TYPE_UNKNOWN = 0
未知或未设置的标记类型。
MarkerType MARKER_TYPE_QRCODE = 1
基于二维码的标记。
MarkerType MARKER_TYPE_MICRO_QRCODE = 2
基于微型二维码的标记。
MarkerType MARKER_TYPE_ARUCO = 3
基于 Aruco 码的标记。
MarkerType MARKER_TYPE_APRIL_TAG = 4
基于 April Tag 的标记。
MarkerType MARKER_TYPE_MAX = 5
该枚举的最大值。
方法说明
Variant get_marker_data(snapshot: RID, index: int) const 🔗
返回一个 String 或 PackedByteArray 缓冲区,其中包含该 index 处的标记的数据。仅适用于二维码标记。
int get_marker_id(index: int) const 🔗
返回该 index 处的标记的标记 ID。仅适用于 Aruco 或 April Tag 标记。
MarkerType get_marker_type(index: int) const 🔗
返回该 index 处的标记的标记类型。