class_openxractionset.rst 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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 OpenXRActionSet.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_OpenXRActionSet:
  6. OpenXRActionSet
  7. ===============
  8. **Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  9. Collection of :ref:`OpenXRAction<class_OpenXRAction>` resources that make up an action set.
  10. Description
  11. -----------
  12. 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.
  13. Action sets can contain the same actions, or actions 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.
  14. Note that the name of the resource is used to identify the action set within OpenXR.
  15. Properties
  16. ----------
  17. +-----------------------------+----------------------------------------------------------------------+--------+
  18. | :ref:`Array<class_Array>` | :ref:`actions<class_OpenXRActionSet_property_actions>` | ``[]`` |
  19. +-----------------------------+----------------------------------------------------------------------+--------+
  20. | :ref:`String<class_String>` | :ref:`localized_name<class_OpenXRActionSet_property_localized_name>` | ``""`` |
  21. +-----------------------------+----------------------------------------------------------------------+--------+
  22. | :ref:`int<class_int>` | :ref:`priority<class_OpenXRActionSet_property_priority>` | ``0`` |
  23. +-----------------------------+----------------------------------------------------------------------+--------+
  24. Methods
  25. -------
  26. +------+-----------------------------------------------------------------------------------------------------------------------------+
  27. | void | :ref:`add_action<class_OpenXRActionSet_method_add_action>` **(** :ref:`OpenXRAction<class_OpenXRAction>` action **)** |
  28. +------+-----------------------------------------------------------------------------------------------------------------------------+
  29. | void | :ref:`remove_action<class_OpenXRActionSet_method_remove_action>` **(** :ref:`OpenXRAction<class_OpenXRAction>` action **)** |
  30. +------+-----------------------------------------------------------------------------------------------------------------------------+
  31. Property Descriptions
  32. ---------------------
  33. .. _class_OpenXRActionSet_property_actions:
  34. - :ref:`Array<class_Array>` **actions**
  35. +-----------+--------------------+
  36. | *Default* | ``[]`` |
  37. +-----------+--------------------+
  38. | *Setter* | set_actions(value) |
  39. +-----------+--------------------+
  40. | *Getter* | get_actions() |
  41. +-----------+--------------------+
  42. Collection of actions for this action set.
  43. ----
  44. .. _class_OpenXRActionSet_property_localized_name:
  45. - :ref:`String<class_String>` **localized_name**
  46. +-----------+---------------------------+
  47. | *Default* | ``""`` |
  48. +-----------+---------------------------+
  49. | *Setter* | set_localized_name(value) |
  50. +-----------+---------------------------+
  51. | *Getter* | get_localized_name() |
  52. +-----------+---------------------------+
  53. The localised name of this action set.
  54. ----
  55. .. _class_OpenXRActionSet_property_priority:
  56. - :ref:`int<class_int>` **priority**
  57. +-----------+---------------------+
  58. | *Default* | ``0`` |
  59. +-----------+---------------------+
  60. | *Setter* | set_priority(value) |
  61. +-----------+---------------------+
  62. | *Getter* | get_priority() |
  63. +-----------+---------------------+
  64. The priority for this action set.
  65. Method Descriptions
  66. -------------------
  67. .. _class_OpenXRActionSet_method_add_action:
  68. - void **add_action** **(** :ref:`OpenXRAction<class_OpenXRAction>` action **)**
  69. Add an action to this action set.
  70. ----
  71. .. _class_OpenXRActionSet_method_remove_action:
  72. - void **remove_action** **(** :ref:`OpenXRAction<class_OpenXRAction>` action **)**
  73. Remove an action from this action set.
  74. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  75. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  76. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  77. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  78. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  79. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`