Work in progress
Godot documentation is being updated to reflect the latest changes in version
4.0. Some documentation pages may
still state outdated information. This banner will tell you if you're reading one of such pages.
The contents of this page are up to date. If you can still find outdated information, please open an issue.
Inherits: Resource < RefCounted < Object
Defines a binding between an OpenXRAction and an XR input or output.
This binding resource binds an OpenXRAction to inputs or outputs. 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".
get_path_count ( ) const
remove_path ( String path )
void set_action ( OpenXRAction value )
OpenXRAction get_action ( )
OpenXRAction that is bound to these paths.
PackedStringArray paths =
void set_paths ( PackedStringArray value )
PackedStringArray get_paths ( )
Paths that define the inputs or outputs bound on the device.
void add_path ( String path )
Add an input/output path to this binding.
int get_path_count ( ) const
Get the number of input/output paths in this binding.
bool has_path ( String path ) const
true if this input/output path is part of this binding.
void remove_path ( String path )
Removes this input/output path from this binding.