godot/modules/openxr/doc_classes/OpenXRActionSet.xml

46 lines
2.0 KiB
XML
Raw Normal View History

2021-12-14 01:44:12 +00:00
<?xml version="1.0" encoding="UTF-8" ?>
<class name="OpenXRActionSet" inherits="Resource" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../doc/class.xsd">
2021-12-14 01:44:12 +00:00
<brief_description>
Collection of [OpenXRAction] resources that make up an action set.
</brief_description>
<description>
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.
2022-03-16 23:24:47 +00:00
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.
2021-12-14 01:44:12 +00:00
</description>
<tutorials>
</tutorials>
<methods>
<method name="add_action">
<return type="void" />
<param index="0" name="action" type="OpenXRAction" />
2021-12-14 01:44:12 +00:00
<description>
Add an action to this action set.
</description>
</method>
2022-03-16 23:24:47 +00:00
<method name="get_action_count" qualifiers="const">
<return type="int" />
<description>
Retrieve the number of actions in our action set.
</description>
</method>
2021-12-14 01:44:12 +00:00
<method name="remove_action">
<return type="void" />
<param index="0" name="action" type="OpenXRAction" />
2021-12-14 01:44:12 +00:00
<description>
Remove an action from this action set.
</description>
</method>
</methods>
<members>
<member name="actions" type="Array" setter="set_actions" getter="get_actions" default="[]">
Collection of actions for this action set.
</member>
<member name="localized_name" type="String" setter="set_localized_name" getter="get_localized_name" default="&quot;&quot;">
The localized name of this action set.
2021-12-14 01:44:12 +00:00
</member>
<member name="priority" type="int" setter="set_priority" getter="get_priority" default="0">
The priority for this action set.
</member>
</members>
</class>