123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236 |
- :github_url: hide
- .. DO NOT EDIT THIS FILE!!!
- .. Generated automatically from Godot engine sources.
- .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
- .. XML source: https://github.com/godotengine/godot/tree/master/modules/openxr/doc_classes/OpenXRIPBinding.xml.
- .. _class_OpenXRIPBinding:
- OpenXRIPBinding
- ===============
- **Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
- Defines a binding between an :ref:`OpenXRAction<class_OpenXRAction>` and an XR input or output.
- .. rst-class:: classref-introduction-group
- Description
- -----------
- This binding resource binds an :ref:`OpenXRAction<class_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.
- .. rst-class:: classref-reftable-group
- Properties
- ----------
- .. table::
- :widths: auto
- +---------------------------------------------------+----------------------------------------------------------------------------+--------+
- | :ref:`OpenXRAction<class_OpenXRAction>` | :ref:`action<class_OpenXRIPBinding_property_action>` | |
- +---------------------------------------------------+----------------------------------------------------------------------------+--------+
- | :ref:`Array<class_Array>` | :ref:`binding_modifiers<class_OpenXRIPBinding_property_binding_modifiers>` | ``[]`` |
- +---------------------------------------------------+----------------------------------------------------------------------------+--------+
- | :ref:`String<class_String>` | :ref:`binding_path<class_OpenXRIPBinding_property_binding_path>` | ``""`` |
- +---------------------------------------------------+----------------------------------------------------------------------------+--------+
- | :ref:`PackedStringArray<class_PackedStringArray>` | :ref:`paths<class_OpenXRIPBinding_property_paths>` | |
- +---------------------------------------------------+----------------------------------------------------------------------------+--------+
- .. rst-class:: classref-reftable-group
- Methods
- -------
- .. table::
- :widths: auto
- +-----------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`add_path<class_OpenXRIPBinding_method_add_path>`\ (\ path\: :ref:`String<class_String>`\ ) |
- +-----------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+
- | :ref:`OpenXRActionBindingModifier<class_OpenXRActionBindingModifier>` | :ref:`get_binding_modifier<class_OpenXRIPBinding_method_get_binding_modifier>`\ (\ index\: :ref:`int<class_int>`\ ) |const| |
- +-----------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`get_binding_modifier_count<class_OpenXRIPBinding_method_get_binding_modifier_count>`\ (\ ) |const| |
- +-----------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`get_path_count<class_OpenXRIPBinding_method_get_path_count>`\ (\ ) |const| |
- +-----------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`has_path<class_OpenXRIPBinding_method_has_path>`\ (\ path\: :ref:`String<class_String>`\ ) |const| |
- +-----------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`remove_path<class_OpenXRIPBinding_method_remove_path>`\ (\ path\: :ref:`String<class_String>`\ ) |
- +-----------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+
- .. rst-class:: classref-section-separator
- ----
- .. rst-class:: classref-descriptions-group
- Property Descriptions
- ---------------------
- .. _class_OpenXRIPBinding_property_action:
- .. rst-class:: classref-property
- :ref:`OpenXRAction<class_OpenXRAction>` **action** :ref:`🔗<class_OpenXRIPBinding_property_action>`
- .. rst-class:: classref-property-setget
- - |void| **set_action**\ (\ value\: :ref:`OpenXRAction<class_OpenXRAction>`\ )
- - :ref:`OpenXRAction<class_OpenXRAction>` **get_action**\ (\ )
- :ref:`OpenXRAction<class_OpenXRAction>` that is bound to :ref:`binding_path<class_OpenXRIPBinding_property_binding_path>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_OpenXRIPBinding_property_binding_modifiers:
- .. rst-class:: classref-property
- :ref:`Array<class_Array>` **binding_modifiers** = ``[]`` :ref:`🔗<class_OpenXRIPBinding_property_binding_modifiers>`
- .. rst-class:: classref-property-setget
- - |void| **set_binding_modifiers**\ (\ value\: :ref:`Array<class_Array>`\ )
- - :ref:`Array<class_Array>` **get_binding_modifiers**\ (\ )
- Binding modifiers for this binding.
- .. rst-class:: classref-item-separator
- ----
- .. _class_OpenXRIPBinding_property_binding_path:
- .. rst-class:: classref-property
- :ref:`String<class_String>` **binding_path** = ``""`` :ref:`🔗<class_OpenXRIPBinding_property_binding_path>`
- .. rst-class:: classref-property-setget
- - |void| **set_binding_path**\ (\ value\: :ref:`String<class_String>`\ )
- - :ref:`String<class_String>` **get_binding_path**\ (\ )
- Binding path that defines the input or output bound to :ref:`action<class_OpenXRIPBinding_property_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.
- .. rst-class:: classref-item-separator
- ----
- .. _class_OpenXRIPBinding_property_paths:
- .. rst-class:: classref-property
- :ref:`PackedStringArray<class_PackedStringArray>` **paths** :ref:`🔗<class_OpenXRIPBinding_property_paths>`
- .. rst-class:: classref-property-setget
- - |void| **set_paths**\ (\ value\: :ref:`PackedStringArray<class_PackedStringArray>`\ )
- - :ref:`PackedStringArray<class_PackedStringArray>` **get_paths**\ (\ )
- **Deprecated:** Use :ref:`binding_path<class_OpenXRIPBinding_property_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 :ref:`PackedStringArray<class_PackedStringArray>` for more details.
- .. rst-class:: classref-section-separator
- ----
- .. rst-class:: classref-descriptions-group
- Method Descriptions
- -------------------
- .. _class_OpenXRIPBinding_method_add_path:
- .. rst-class:: classref-method
- |void| **add_path**\ (\ path\: :ref:`String<class_String>`\ ) :ref:`🔗<class_OpenXRIPBinding_method_add_path>`
- **Deprecated:** Binding is for a single path.
- Add an input/output path to this binding.
- .. rst-class:: classref-item-separator
- ----
- .. _class_OpenXRIPBinding_method_get_binding_modifier:
- .. rst-class:: classref-method
- :ref:`OpenXRActionBindingModifier<class_OpenXRActionBindingModifier>` **get_binding_modifier**\ (\ index\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_OpenXRIPBinding_method_get_binding_modifier>`
- Get the :ref:`OpenXRBindingModifier<class_OpenXRBindingModifier>` at this index.
- .. rst-class:: classref-item-separator
- ----
- .. _class_OpenXRIPBinding_method_get_binding_modifier_count:
- .. rst-class:: classref-method
- :ref:`int<class_int>` **get_binding_modifier_count**\ (\ ) |const| :ref:`🔗<class_OpenXRIPBinding_method_get_binding_modifier_count>`
- Get the number of binding modifiers for this binding.
- .. rst-class:: classref-item-separator
- ----
- .. _class_OpenXRIPBinding_method_get_path_count:
- .. rst-class:: classref-method
- :ref:`int<class_int>` **get_path_count**\ (\ ) |const| :ref:`🔗<class_OpenXRIPBinding_method_get_path_count>`
- **Deprecated:** Binding is for a single path.
- Get the number of input/output paths in this binding.
- .. rst-class:: classref-item-separator
- ----
- .. _class_OpenXRIPBinding_method_has_path:
- .. rst-class:: classref-method
- :ref:`bool<class_bool>` **has_path**\ (\ path\: :ref:`String<class_String>`\ ) |const| :ref:`🔗<class_OpenXRIPBinding_method_has_path>`
- **Deprecated:** Binding is for a single path.
- Returns ``true`` if this input/output path is part of this binding.
- .. rst-class:: classref-item-separator
- ----
- .. _class_OpenXRIPBinding_method_remove_path:
- .. rst-class:: classref-method
- |void| **remove_path**\ (\ path\: :ref:`String<class_String>`\ ) :ref:`🔗<class_OpenXRIPBinding_method_remove_path>`
- **Deprecated:** Binding is for a single path.
- Removes this input/output path from this binding.
- .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
- .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
- .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
- .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
- .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
- .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
- .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
- .. |void| replace:: :abbr:`void (No return value.)`
|