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.

OpenXRSpatialCapabilityConfigurationPlaneTracking

實驗性: This class may be changed or removed in future versions.

繼承: OpenXRSpatialCapabilityConfigurationBaseHeader < RefCounted < Object

平面追蹤的設定標頭。

說明

用於平面追蹤的設定標頭。將它傳遞給 OpenXRSpatialEntityExtension.create_spatial_context() 方法即可建立具有平面追蹤功能的空間情境。

方法

PackedInt64Array

get_enabled_components() const

bool

supports_labels()

bool

supports_mesh_2d()

bool

supports_polygons()


方法說明

PackedInt64Array get_enabled_components() const 🔗

回傳該設定啟用的元件。

注意:僅在該設定用於建立空間情境後有效。


bool supports_labels() 🔗

如果支援平面語義標籤元件,則回傳 true(僅在 OpenXR 會話啟動後有效)。可以使用 OpenXRSpatialComponentPlaneSemanticLabelList 資料物件查詢這些標籤。


bool supports_mesh_2d() 🔗

如果支援網格 2D 元件,則回傳 true(僅在 OpenXR 會話啟動後有效)。可以使用 OpenXRSpatialComponentMesh2DList 資料物件查詢這些資訊。


bool supports_polygons() 🔗

如果支援 2D 多邊形元件,則回傳 true(僅在 OpenXR 會話啟動後有效)。可以使用 OpenXRSpatialComponentPolygon2DList 資料物件查詢這些資訊。