class_openxripbinding.rst 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/make_rst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the OpenXRIPBinding.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_OpenXRIPBinding:
  6. OpenXRIPBinding
  7. ===============
  8. **Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  9. Defines a binding between an :ref:`OpenXRAction<class_OpenXRAction>` and an XR input or output.
  10. Description
  11. -----------
  12. This binding resource binds an OpenXR action 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".
  13. Properties
  14. ----------
  15. +---------------------------------------------------+------------------------------------------------------+-------------------------+
  16. | :ref:`OpenXRAction<class_OpenXRAction>` | :ref:`action<class_OpenXRIPBinding_property_action>` | |
  17. +---------------------------------------------------+------------------------------------------------------+-------------------------+
  18. | :ref:`PackedStringArray<class_PackedStringArray>` | :ref:`paths<class_OpenXRIPBinding_property_paths>` | ``PackedStringArray()`` |
  19. +---------------------------------------------------+------------------------------------------------------+-------------------------+
  20. Property Descriptions
  21. ---------------------
  22. .. _class_OpenXRIPBinding_property_action:
  23. - :ref:`OpenXRAction<class_OpenXRAction>` **action**
  24. +----------+-------------------+
  25. | *Setter* | set_action(value) |
  26. +----------+-------------------+
  27. | *Getter* | get_action() |
  28. +----------+-------------------+
  29. Action that is bound to these paths.
  30. ----
  31. .. _class_OpenXRIPBinding_property_paths:
  32. - :ref:`PackedStringArray<class_PackedStringArray>` **paths**
  33. +-----------+-------------------------+
  34. | *Default* | ``PackedStringArray()`` |
  35. +-----------+-------------------------+
  36. | *Setter* | set_paths(value) |
  37. +-----------+-------------------------+
  38. | *Getter* | get_paths() |
  39. +-----------+-------------------------+
  40. Paths that define the inputs or outputs bound on the device.
  41. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  42. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  43. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  44. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  45. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  46. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`