Path: blob/master/modules/openxr/doc_classes/OpenXRActionSet.xml
10278 views
<?xml version="1.0" encoding="UTF-8" ?>1<class name="OpenXRActionSet" inherits="Resource" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../doc/class.xsd">2<brief_description>3Collection of [OpenXRAction] resources that make up an action set.4</brief_description>5<description>6Action 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.7Action 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.8</description>9<tutorials>10</tutorials>11<methods>12<method name="add_action">13<return type="void" />14<param index="0" name="action" type="OpenXRAction" />15<description>16Add an action to this action set.17</description>18</method>19<method name="get_action_count" qualifiers="const">20<return type="int" />21<description>22Retrieve the number of actions in our action set.23</description>24</method>25<method name="remove_action">26<return type="void" />27<param index="0" name="action" type="OpenXRAction" />28<description>29Remove an action from this action set.30</description>31</method>32</methods>33<members>34<member name="actions" type="Array" setter="set_actions" getter="get_actions" default="[]">35Collection of actions for this action set.36</member>37<member name="localized_name" type="String" setter="set_localized_name" getter="get_localized_name" default="""">38The localized name of this action set.39</member>40<member name="priority" type="int" setter="set_priority" getter="get_priority" default="0">41The priority for this action set.42</member>43</members>44</class>454647