Path: blob/master/modules/openxr/doc_classes/OpenXRRenderModelExtension.xml
10278 views
<?xml version="1.0" encoding="UTF-8" ?>1<class name="OpenXRRenderModelExtension" inherits="OpenXRExtensionWrapper" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../doc/class.xsd">2<brief_description>3This class implements the OpenXR Render Model Extension.4</brief_description>5<description>6This class implements the OpenXR Render Model Extension, if enabled it will maintain a list of active render models and provides an interface to the render model data.7</description>8<tutorials>9</tutorials>10<methods>11<method name="is_active" qualifiers="const">12<return type="bool" />13<description>14Returns [code]true[/code] if OpenXR's render model extension is supported and enabled.15[b]Note:[/b] This only returns a valid value after OpenXR has been initialized.16</description>17</method>18<method name="render_model_create">19<return type="RID" />20<param index="0" name="render_model_id" type="int" />21<description>22Creates a render model object within OpenXR using a render model id.23[b]Note:[/b] This function is exposed for dependent OpenXR extensions that provide render model ids to be used with the render model extension.24</description>25</method>26<method name="render_model_destroy">27<return type="void" />28<param index="0" name="render_model" type="RID" />29<description>30Destroys a render model object within OpenXR that was previously created with [method render_model_create].31[b]Note:[/b] This function is exposed for dependent OpenXR extensions that provide render model ids to be used with the render model extension.32</description>33</method>34<method name="render_model_get_all">35<return type="RID[]" />36<description>37Returns an array of all currently active render models registered with this extension.38</description>39</method>40<method name="render_model_get_animatable_node_count" qualifiers="const">41<return type="int" />42<param index="0" name="render_model" type="RID" />43<description>44Returns the number of animatable nodes this render model has.45</description>46</method>47<method name="render_model_get_animatable_node_name" qualifiers="const">48<return type="String" />49<param index="0" name="render_model" type="RID" />50<param index="1" name="index" type="int" />51<description>52Returns the name of the given animatable node.53</description>54</method>55<method name="render_model_get_animatable_node_transform" qualifiers="const">56<return type="Transform3D" />57<param index="0" name="render_model" type="RID" />58<param index="1" name="index" type="int" />59<description>60Returns the current local transform for an animatable node. This is updated every frame.61</description>62</method>63<method name="render_model_get_confidence" qualifiers="const">64<return type="int" enum="XRPose.TrackingConfidence" />65<param index="0" name="render_model" type="RID" />66<description>67Returns the tracking confidence of the tracking data for the render model.68</description>69</method>70<method name="render_model_get_root_transform" qualifiers="const">71<return type="Transform3D" />72<param index="0" name="render_model" type="RID" />73<description>74Returns the root transform of a render model. This is the tracked position relative to our [XROrigin3D] node.75</description>76</method>77<method name="render_model_get_subaction_paths">78<return type="PackedStringArray" />79<param index="0" name="render_model" type="RID" />80<description>81Returns a list of active subaction paths for this [param render_model].82[b]Note:[/b] If different devices are bound to your actions than available in suggested interaction bindings, this information shows paths related to the interaction bindings being mimicked by that device.83</description>84</method>85<method name="render_model_get_top_level_path" qualifiers="const">86<return type="String" />87<param index="0" name="render_model" type="RID" />88<description>89Returns the top level path associated with this [param render_model]. If provided this identifies whether the render model is associated with the player's hands or other body part.90</description>91</method>92<method name="render_model_is_animatable_node_visible" qualifiers="const">93<return type="bool" />94<param index="0" name="render_model" type="RID" />95<param index="1" name="index" type="int" />96<description>97Returns [code]true[/code] if this animatable node should be visible.98</description>99</method>100<method name="render_model_new_scene_instance" qualifiers="const">101<return type="Node3D" />102<param index="0" name="render_model" type="RID" />103<description>104Returns an instance of a subscene that contains all [MeshInstance3D] nodes that allow you to visualize the render model.105</description>106</method>107</methods>108<signals>109<signal name="render_model_added">110<param index="0" name="render_model" type="RID" />111<description>112Emitted when a new render model is added.113</description>114</signal>115<signal name="render_model_removed">116<param index="0" name="render_model" type="RID" />117<description>118Emitted when a render model is removed.119</description>120</signal>121<signal name="render_model_top_level_path_changed">122<param index="0" name="render_model" type="RID" />123<description>124Emitted when the top level path associated with a render model changed.125</description>126</signal>127</signals>128</class>129130131