OpenXRIPBinding
Inherits: Resource < RefCounted < Object
Description
Section titled “Description”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.
Properties
Section titled “Properties”| Type | Name | Default |
|---|---|---|
| OpenXRAction | action |
|
| Array | binding_modifiers |
[] |
| String | binding_path |
"" |
Methods
Section titled “Methods”| Returns | Method |
|---|---|
| OpenXRActionBindingModifier | get_binding_modifier(index: int) const |
| int | get_binding_modifier_count() const |
Property descriptions
Section titled “Property descriptions”action
OpenXRAction action
OpenXRAction that is bound to binding_path.
binding_modifiers
Array binding_modifiers = []
Binding modifiers for this binding.
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.
Method descriptions
Section titled “Method descriptions”get_binding_modifier
OpenXRActionBindingModifier get_binding_modifier(index: int) const
Get the OpenXRBindingModifier at this index.
get_binding_modifier_count
int get_binding_modifier_count() const
Get the number of binding modifiers for this binding.
