OpenXRIPBinding
继承: Resource
< RefCounted
< Object
Defines a binding between an OpenXRAction
and an XR input or output.
描述
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 | add_path ( path: String ) |
int | get_path_count ( ) const1 |
bool | has_path ( path: String ) const1 |
void | remove_path ( path: String ) |
属性说明
OpenXRAction
action
void
set_action ( value:OpenXRAction
)OpenXRAction
get_action ( )
OpenXRAction
that is bound to binding_path
.
String
binding_path = ""
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.
Paths that define the inputs or outputs bound on the device.
Note: The returned array is copied and any changes to it will not update the original property value. See PackedStringArray
for more details.
方法说明
void
add_path ( path: String
)
已弃用: Binding is for a single path.
Add an input/output path to this binding.
已弃用: Binding is for a single path.
Get the number of input/output paths in this binding.
bool
has_path ( path: String
) const1
已弃用: Binding is for a single path.
Returns true
if this input/output path is part of this binding.
void
remove_path ( path: String
)
已弃用: Binding is for a single path.
Removes this input/output path from this binding.
本方法通常需要用户覆盖才能生效。
本方法无副作用,不会修改该实例的任何成员变量。
本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。
本方法用于构造某个类型。
调用本方法无需实例,可直接使用类名进行调用。
本方法描述的是使用本类型作为左操作数的有效运算符。
这个值是由下列位标志构成位掩码的整数。
无返回值。