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 输入或输出之间的绑定。
描述¶
该绑定资源将一个 OpenXRAction 绑定到输入或输出。由于大多数控制器都有由相同交互配置处理的左手和右手版本,我们可以指定多个绑定。例如,一个动作“开火”可以同时被绑定到“/user/hand/left/input/trigger”和“/user/hand/right/input/trigger”。
属性¶
|
方法¶
void |
|
get_path_count() const |
|
void |
remove_path(path: String) |
属性说明¶
OpenXRAction action 🔗
void set_action(value: OpenXRAction)
OpenXRAction get_action()
绑定到这些路径的 OpenXRAction。
PackedStringArray paths = PackedStringArray() 🔗
void set_paths(value: PackedStringArray)
PackedStringArray get_paths()
定义该设备上绑定的输入或输出的路径。
Note: The returned array is copied and any changes to it will not update the original property value. See PackedStringArray for more details.
方法说明¶
为该绑定添加输入/输出路径。
获取该绑定中输入/输出路径的数量。
bool has_path(path: String) const 🔗
如果该输入/输出路径是该绑定的一部分,则返回 true。
void remove_path(path: String) 🔗
从该绑定中移除该输入/输出路径。