Path: blob/master/modules/openxr/doc_classes/OpenXRIPBinding.xml
10278 views
<?xml version="1.0" encoding="UTF-8" ?>1<class name="OpenXRIPBinding" inherits="Resource" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../doc/class.xsd">2<brief_description>3Defines a binding between an [OpenXRAction] and an XR input or output.4</brief_description>5<description>6This binding resource binds an [OpenXRAction] to an input or output. 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". This would require two binding entries.7</description>8<tutorials>9</tutorials>10<methods>11<method name="add_path" deprecated="Binding is for a single path.">12<return type="void" />13<param index="0" name="path" type="String" />14<description>15Add an input/output path to this binding.16</description>17</method>18<method name="get_binding_modifier" qualifiers="const">19<return type="OpenXRActionBindingModifier" />20<param index="0" name="index" type="int" />21<description>22Get the [OpenXRBindingModifier] at this index.23</description>24</method>25<method name="get_binding_modifier_count" qualifiers="const">26<return type="int" />27<description>28Get the number of binding modifiers for this binding.29</description>30</method>31<method name="get_path_count" qualifiers="const" deprecated="Binding is for a single path.">32<return type="int" />33<description>34Get the number of input/output paths in this binding.35</description>36</method>37<method name="has_path" qualifiers="const" deprecated="Binding is for a single path.">38<return type="bool" />39<param index="0" name="path" type="String" />40<description>41Returns [code]true[/code] if this input/output path is part of this binding.42</description>43</method>44<method name="remove_path" deprecated="Binding is for a single path.">45<return type="void" />46<param index="0" name="path" type="String" />47<description>48Removes this input/output path from this binding.49</description>50</method>51</methods>52<members>53<member name="action" type="OpenXRAction" setter="set_action" getter="get_action">54[OpenXRAction] that is bound to [member binding_path].55</member>56<member name="binding_modifiers" type="Array" setter="set_binding_modifiers" getter="get_binding_modifiers" default="[]">57Binding modifiers for this binding.58</member>59<member name="binding_path" type="String" setter="set_binding_path" getter="get_binding_path" default="""">60Binding path that defines the input or output bound to [member action].61[b]Note:[/b] Binding paths are suggestions, an XR runtime may choose to bind the action to a different input or output emulating this input or output.62</member>63<member name="paths" type="PackedStringArray" setter="set_paths" getter="get_paths" deprecated="Use [member binding_path] instead.">64Paths that define the inputs or outputs bound on the device.65</member>66</members>67</class>686970