class_gltfnode.rst 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237
  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 GLTFNode.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_GLTFNode:
  6. GLTFNode
  7. ========
  8. **Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  9. Description
  10. -----------
  11. **Note:** This class is only compiled in editor builds. Run-time glTF loading and saving is *not* available in exported projects. References to ``GLTFNode`` within a script will cause an error in an exported project.
  12. Properties
  13. ----------
  14. +-----------------------------------------+---------------------------------------------------------+-----------------------------------------------------+
  15. | :ref:`int<class_int>` | :ref:`camera<class_GLTFNode_property_camera>` | ``-1`` |
  16. +-----------------------------------------+---------------------------------------------------------+-----------------------------------------------------+
  17. | :ref:`PoolIntArray<class_PoolIntArray>` | :ref:`children<class_GLTFNode_property_children>` | ``PoolIntArray( )`` |
  18. +-----------------------------------------+---------------------------------------------------------+-----------------------------------------------------+
  19. | :ref:`int<class_int>` | :ref:`height<class_GLTFNode_property_height>` | ``-1`` |
  20. +-----------------------------------------+---------------------------------------------------------+-----------------------------------------------------+
  21. | :ref:`bool<class_bool>` | :ref:`joint<class_GLTFNode_property_joint>` | ``false`` |
  22. +-----------------------------------------+---------------------------------------------------------+-----------------------------------------------------+
  23. | :ref:`int<class_int>` | :ref:`light<class_GLTFNode_property_light>` | ``-1`` |
  24. +-----------------------------------------+---------------------------------------------------------+-----------------------------------------------------+
  25. | :ref:`int<class_int>` | :ref:`mesh<class_GLTFNode_property_mesh>` | ``-1`` |
  26. +-----------------------------------------+---------------------------------------------------------+-----------------------------------------------------+
  27. | :ref:`int<class_int>` | :ref:`parent<class_GLTFNode_property_parent>` | ``-1`` |
  28. +-----------------------------------------+---------------------------------------------------------+-----------------------------------------------------+
  29. | :ref:`Quat<class_Quat>` | :ref:`rotation<class_GLTFNode_property_rotation>` | ``Quat( 0, 0, 0, 1 )`` |
  30. +-----------------------------------------+---------------------------------------------------------+-----------------------------------------------------+
  31. | :ref:`Vector3<class_Vector3>` | :ref:`scale<class_GLTFNode_property_scale>` | ``Vector3( 1, 1, 1 )`` |
  32. +-----------------------------------------+---------------------------------------------------------+-----------------------------------------------------+
  33. | :ref:`int<class_int>` | :ref:`skeleton<class_GLTFNode_property_skeleton>` | ``-1`` |
  34. +-----------------------------------------+---------------------------------------------------------+-----------------------------------------------------+
  35. | :ref:`int<class_int>` | :ref:`skin<class_GLTFNode_property_skin>` | ``-1`` |
  36. +-----------------------------------------+---------------------------------------------------------+-----------------------------------------------------+
  37. | :ref:`Vector3<class_Vector3>` | :ref:`translation<class_GLTFNode_property_translation>` | ``Vector3( 0, 0, 0 )`` |
  38. +-----------------------------------------+---------------------------------------------------------+-----------------------------------------------------+
  39. | :ref:`Transform<class_Transform>` | :ref:`xform<class_GLTFNode_property_xform>` | ``Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 )`` |
  40. +-----------------------------------------+---------------------------------------------------------+-----------------------------------------------------+
  41. Property Descriptions
  42. ---------------------
  43. .. _class_GLTFNode_property_camera:
  44. - :ref:`int<class_int>` **camera**
  45. +-----------+-------------------+
  46. | *Default* | ``-1`` |
  47. +-----------+-------------------+
  48. | *Setter* | set_camera(value) |
  49. +-----------+-------------------+
  50. | *Getter* | get_camera() |
  51. +-----------+-------------------+
  52. ----
  53. .. _class_GLTFNode_property_children:
  54. - :ref:`PoolIntArray<class_PoolIntArray>` **children**
  55. +-----------+----------------------+
  56. | *Default* | ``PoolIntArray( )`` |
  57. +-----------+----------------------+
  58. | *Setter* | set_children(value) |
  59. +-----------+----------------------+
  60. | *Getter* | get_children() |
  61. +-----------+----------------------+
  62. ----
  63. .. _class_GLTFNode_property_height:
  64. - :ref:`int<class_int>` **height**
  65. +-----------+-------------------+
  66. | *Default* | ``-1`` |
  67. +-----------+-------------------+
  68. | *Setter* | set_height(value) |
  69. +-----------+-------------------+
  70. | *Getter* | get_height() |
  71. +-----------+-------------------+
  72. ----
  73. .. _class_GLTFNode_property_joint:
  74. - :ref:`bool<class_bool>` **joint**
  75. +-----------+------------------+
  76. | *Default* | ``false`` |
  77. +-----------+------------------+
  78. | *Setter* | set_joint(value) |
  79. +-----------+------------------+
  80. | *Getter* | get_joint() |
  81. +-----------+------------------+
  82. ----
  83. .. _class_GLTFNode_property_light:
  84. - :ref:`int<class_int>` **light**
  85. +-----------+------------------+
  86. | *Default* | ``-1`` |
  87. +-----------+------------------+
  88. | *Setter* | set_light(value) |
  89. +-----------+------------------+
  90. | *Getter* | get_light() |
  91. +-----------+------------------+
  92. ----
  93. .. _class_GLTFNode_property_mesh:
  94. - :ref:`int<class_int>` **mesh**
  95. +-----------+-----------------+
  96. | *Default* | ``-1`` |
  97. +-----------+-----------------+
  98. | *Setter* | set_mesh(value) |
  99. +-----------+-----------------+
  100. | *Getter* | get_mesh() |
  101. +-----------+-----------------+
  102. ----
  103. .. _class_GLTFNode_property_parent:
  104. - :ref:`int<class_int>` **parent**
  105. +-----------+-------------------+
  106. | *Default* | ``-1`` |
  107. +-----------+-------------------+
  108. | *Setter* | set_parent(value) |
  109. +-----------+-------------------+
  110. | *Getter* | get_parent() |
  111. +-----------+-------------------+
  112. ----
  113. .. _class_GLTFNode_property_rotation:
  114. - :ref:`Quat<class_Quat>` **rotation**
  115. +-----------+------------------------+
  116. | *Default* | ``Quat( 0, 0, 0, 1 )`` |
  117. +-----------+------------------------+
  118. | *Setter* | set_rotation(value) |
  119. +-----------+------------------------+
  120. | *Getter* | get_rotation() |
  121. +-----------+------------------------+
  122. ----
  123. .. _class_GLTFNode_property_scale:
  124. - :ref:`Vector3<class_Vector3>` **scale**
  125. +-----------+------------------------+
  126. | *Default* | ``Vector3( 1, 1, 1 )`` |
  127. +-----------+------------------------+
  128. | *Setter* | set_scale(value) |
  129. +-----------+------------------------+
  130. | *Getter* | get_scale() |
  131. +-----------+------------------------+
  132. ----
  133. .. _class_GLTFNode_property_skeleton:
  134. - :ref:`int<class_int>` **skeleton**
  135. +-----------+---------------------+
  136. | *Default* | ``-1`` |
  137. +-----------+---------------------+
  138. | *Setter* | set_skeleton(value) |
  139. +-----------+---------------------+
  140. | *Getter* | get_skeleton() |
  141. +-----------+---------------------+
  142. ----
  143. .. _class_GLTFNode_property_skin:
  144. - :ref:`int<class_int>` **skin**
  145. +-----------+-----------------+
  146. | *Default* | ``-1`` |
  147. +-----------+-----------------+
  148. | *Setter* | set_skin(value) |
  149. +-----------+-----------------+
  150. | *Getter* | get_skin() |
  151. +-----------+-----------------+
  152. ----
  153. .. _class_GLTFNode_property_translation:
  154. - :ref:`Vector3<class_Vector3>` **translation**
  155. +-----------+------------------------+
  156. | *Default* | ``Vector3( 0, 0, 0 )`` |
  157. +-----------+------------------------+
  158. | *Setter* | set_translation(value) |
  159. +-----------+------------------------+
  160. | *Getter* | get_translation() |
  161. +-----------+------------------------+
  162. ----
  163. .. _class_GLTFNode_property_xform:
  164. - :ref:`Transform<class_Transform>` **xform**
  165. +-----------+-----------------------------------------------------+
  166. | *Default* | ``Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 )`` |
  167. +-----------+-----------------------------------------------------+
  168. | *Setter* | set_xform(value) |
  169. +-----------+-----------------------------------------------------+
  170. | *Getter* | get_xform() |
  171. +-----------+-----------------------------------------------------+
  172. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  173. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  174. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`