class_openxractionset.rst 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/4.2/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/4.2/modules/openxr/doc_classes/OpenXRActionSet.xml.
  6. .. _class_OpenXRActionSet:
  7. OpenXRActionSet
  8. ===============
  9. **Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. Collection of :ref:`OpenXRAction<class_OpenXRAction>` resources that make up an action set.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. Action sets in OpenXR define a collection of actions that can be activated in unison. This allows games to easily change between different states that require different inputs or need to reinterpret inputs. For instance we could have an action set that is active when a menu is open, an action set that is active when the player is freely walking around and an action set that is active when the player is controlling a vehicle.
  15. Action sets can contain the same action with the same name, if such action sets are active at the same time the action set with the highest priority defines which binding is active.
  16. .. rst-class:: classref-reftable-group
  17. Properties
  18. ----------
  19. .. table::
  20. :widths: auto
  21. +-----------------------------+----------------------------------------------------------------------+--------+
  22. | :ref:`Array<class_Array>` | :ref:`actions<class_OpenXRActionSet_property_actions>` | ``[]`` |
  23. +-----------------------------+----------------------------------------------------------------------+--------+
  24. | :ref:`String<class_String>` | :ref:`localized_name<class_OpenXRActionSet_property_localized_name>` | ``""`` |
  25. +-----------------------------+----------------------------------------------------------------------+--------+
  26. | :ref:`int<class_int>` | :ref:`priority<class_OpenXRActionSet_property_priority>` | ``0`` |
  27. +-----------------------------+----------------------------------------------------------------------+--------+
  28. .. rst-class:: classref-reftable-group
  29. Methods
  30. -------
  31. .. table::
  32. :widths: auto
  33. +-----------------------+-----------------------------------------------------------------------------------------------------------------------------+
  34. | void | :ref:`add_action<class_OpenXRActionSet_method_add_action>` **(** :ref:`OpenXRAction<class_OpenXRAction>` action **)** |
  35. +-----------------------+-----------------------------------------------------------------------------------------------------------------------------+
  36. | :ref:`int<class_int>` | :ref:`get_action_count<class_OpenXRActionSet_method_get_action_count>` **(** **)** |const| |
  37. +-----------------------+-----------------------------------------------------------------------------------------------------------------------------+
  38. | void | :ref:`remove_action<class_OpenXRActionSet_method_remove_action>` **(** :ref:`OpenXRAction<class_OpenXRAction>` action **)** |
  39. +-----------------------+-----------------------------------------------------------------------------------------------------------------------------+
  40. .. rst-class:: classref-section-separator
  41. ----
  42. .. rst-class:: classref-descriptions-group
  43. Property Descriptions
  44. ---------------------
  45. .. _class_OpenXRActionSet_property_actions:
  46. .. rst-class:: classref-property
  47. :ref:`Array<class_Array>` **actions** = ``[]``
  48. .. rst-class:: classref-property-setget
  49. - void **set_actions** **(** :ref:`Array<class_Array>` value **)**
  50. - :ref:`Array<class_Array>` **get_actions** **(** **)**
  51. Collection of actions for this action set.
  52. .. rst-class:: classref-item-separator
  53. ----
  54. .. _class_OpenXRActionSet_property_localized_name:
  55. .. rst-class:: classref-property
  56. :ref:`String<class_String>` **localized_name** = ``""``
  57. .. rst-class:: classref-property-setget
  58. - void **set_localized_name** **(** :ref:`String<class_String>` value **)**
  59. - :ref:`String<class_String>` **get_localized_name** **(** **)**
  60. The localized name of this action set.
  61. .. rst-class:: classref-item-separator
  62. ----
  63. .. _class_OpenXRActionSet_property_priority:
  64. .. rst-class:: classref-property
  65. :ref:`int<class_int>` **priority** = ``0``
  66. .. rst-class:: classref-property-setget
  67. - void **set_priority** **(** :ref:`int<class_int>` value **)**
  68. - :ref:`int<class_int>` **get_priority** **(** **)**
  69. The priority for this action set.
  70. .. rst-class:: classref-section-separator
  71. ----
  72. .. rst-class:: classref-descriptions-group
  73. Method Descriptions
  74. -------------------
  75. .. _class_OpenXRActionSet_method_add_action:
  76. .. rst-class:: classref-method
  77. void **add_action** **(** :ref:`OpenXRAction<class_OpenXRAction>` action **)**
  78. Add an action to this action set.
  79. .. rst-class:: classref-item-separator
  80. ----
  81. .. _class_OpenXRActionSet_method_get_action_count:
  82. .. rst-class:: classref-method
  83. :ref:`int<class_int>` **get_action_count** **(** **)** |const|
  84. Retrieve the number of actions in our action set.
  85. .. rst-class:: classref-item-separator
  86. ----
  87. .. _class_OpenXRActionSet_method_remove_action:
  88. .. rst-class:: classref-method
  89. void **remove_action** **(** :ref:`OpenXRAction<class_OpenXRAction>` action **)**
  90. Remove an action from this action set.
  91. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  92. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  93. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  94. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  95. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  96. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  97. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`