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...
OpenXRActionMap
繼承: Resource < RefCounted < Object
用於 OpenXR 模組的 OpenXRActionSet 和 OpenXRInteractionProfile 資源的合集。
說明
OpenXR 使用類似於 Godots 輸入對應系統的動作系統,將各種型別的 XR 控制器上的輸入和輸出綁定到命名的動作。OpenXR 規範了比 Godot 支援的更多關於這些輸入和輸出的細節。
另一個重要的區別是 OpenXR 不提供對這些綁定的控制。我們註冊的綁定是建議,取決於 XR 運作時是否為使用者提供更改這些綁定的能力。如果有新硬體可用,這允許 XR 運行時填補空白。
因此,動作對應需要在啟動時載入,之後無法更改。該資源是整個動作對應的容器。
屬性
|
||
|
方法
void |
add_action_set(action_set: OpenXRActionSet) |
void |
add_interaction_profile(interaction_profile: OpenXRInteractionProfile) |
void |
|
find_action_set(name: String) const |
|
find_interaction_profile(name: String) const |
|
get_action_set(idx: int) const |
|
get_action_set_count() const |
|
get_interaction_profile(idx: int) const |
|
get_interaction_profile_count() const |
|
void |
remove_action_set(action_set: OpenXRActionSet) |
void |
remove_interaction_profile(interaction_profile: OpenXRInteractionProfile) |
屬性說明
OpenXRActionSet 的合集,是該動作對應的一部分。
Array interaction_profiles = [] 🔗
OpenXRInteractionProfile 的合集,是該動作對應的一部分。
方法說明
void add_action_set(action_set: OpenXRActionSet) 🔗
新增動作集。
void add_interaction_profile(interaction_profile: OpenXRInteractionProfile) 🔗
新增互動配置。
void create_default_action_sets() 🔗
使用預設動作設定該動作集。
OpenXRActionSet find_action_set(name: String) const 🔗
按名稱檢索動作集。
OpenXRInteractionProfile find_interaction_profile(name: String) const 🔗
按名稱(路徑)搜尋互動配置。
OpenXRActionSet get_action_set(idx: int) const 🔗
獲取位於該索引的動作集。
int get_action_set_count() const 🔗
獲取動作對應中動作集的數量。
OpenXRInteractionProfile get_interaction_profile(idx: int) const 🔗
獲取位於該索引的互動配置。
int get_interaction_profile_count() const 🔗
獲取動作對應中互動配置的數量。
void remove_action_set(action_set: OpenXRActionSet) 🔗
移除動作集。
void remove_interaction_profile(interaction_profile: OpenXRInteractionProfile) 🔗
移除互動配置。