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...
OpenXRIPBinding
繼承: Resource < RefCounted < Object
定義 OpenXRAction 和 XR 輸入或輸出之間的綁定。
說明
This binding resource binds an OpenXRAction to an input or output. As most controllers have left hand and right versions that are handled by the same interaction profile we can specify multiple bindings. For instance an action "Fire" could be bound to both "/user/hand/left/input/trigger" and "/user/hand/right/input/trigger". This would require two binding entries.
屬性
|
||
|
||
方法
void |
|
get_binding_modifier(index: int) const |
|
get_binding_modifier_count() const |
|
get_path_count() const |
|
void |
remove_path(path: String) |
屬性說明
OpenXRAction action 🔗
void set_action(value: OpenXRAction)
OpenXRAction get_action()
OpenXRAction that is bound to binding_path.
Array binding_modifiers = [] 🔗
Binding modifiers for this binding.
Binding path that defines the input or output bound to action.
Note: Binding paths are suggestions, an XR runtime may choose to bind the action to a different input or output emulating this input or output.
PackedStringArray paths 🔗
void set_paths(value: PackedStringArray)
PackedStringArray get_paths()
已棄用: Use binding_path instead.
定義該裝置上綁定的輸入或輸出的路徑。
Note: The returned array is copied and any changes to it will not update the original property value. See PackedStringArray for more details.
方法說明
已棄用: Binding is for a single path.
為該綁定新增輸入/輸出路徑。
OpenXRActionBindingModifier get_binding_modifier(index: int) const 🔗
Get the OpenXRBindingModifier at this index.
int get_binding_modifier_count() const 🔗
Get the number of binding modifiers for this binding.
已棄用: Binding is for a single path.
獲取該綁定中輸入/輸出路徑的數量。
bool has_path(path: String) const 🔗
已棄用: Binding is for a single path.
如果該輸入/輸出路徑是該綁定的一部分,則返回 true。
void remove_path(path: String) 🔗
已棄用: Binding is for a single path.
從該綁定中移除該輸入/輸出路徑。