class_gltfstate.rst 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/modules/gltf/doc_classes/GLTFState.xml.
  6. .. _class_GLTFState:
  7. GLTFState
  8. =========
  9. **Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. Properties
  11. ----------
  12. +-------------------------------------------------+----------------------------------------------------------------------------+------------------------+
  13. | :ref:`String<class_String>` | :ref:`base_path<class_GLTFState_property_base_path>` | ``""`` |
  14. +-------------------------------------------------+----------------------------------------------------------------------------+------------------------+
  15. | :ref:`PackedByteArray[]<class_PackedByteArray>` | :ref:`buffers<class_GLTFState_property_buffers>` | ``[]`` |
  16. +-------------------------------------------------+----------------------------------------------------------------------------+------------------------+
  17. | :ref:`bool<class_bool>` | :ref:`create_animations<class_GLTFState_property_create_animations>` | ``true`` |
  18. +-------------------------------------------------+----------------------------------------------------------------------------+------------------------+
  19. | :ref:`PackedByteArray<class_PackedByteArray>` | :ref:`glb_data<class_GLTFState_property_glb_data>` | ``PackedByteArray()`` |
  20. +-------------------------------------------------+----------------------------------------------------------------------------+------------------------+
  21. | :ref:`Dictionary<class_Dictionary>` | :ref:`json<class_GLTFState_property_json>` | ``{}`` |
  22. +-------------------------------------------------+----------------------------------------------------------------------------+------------------------+
  23. | :ref:`int<class_int>` | :ref:`major_version<class_GLTFState_property_major_version>` | ``0`` |
  24. +-------------------------------------------------+----------------------------------------------------------------------------+------------------------+
  25. | :ref:`int<class_int>` | :ref:`minor_version<class_GLTFState_property_minor_version>` | ``0`` |
  26. +-------------------------------------------------+----------------------------------------------------------------------------+------------------------+
  27. | :ref:`PackedInt32Array<class_PackedInt32Array>` | :ref:`root_nodes<class_GLTFState_property_root_nodes>` | ``PackedInt32Array()`` |
  28. +-------------------------------------------------+----------------------------------------------------------------------------+------------------------+
  29. | :ref:`String<class_String>` | :ref:`scene_name<class_GLTFState_property_scene_name>` | ``""`` |
  30. +-------------------------------------------------+----------------------------------------------------------------------------+------------------------+
  31. | :ref:`bool<class_bool>` | :ref:`use_named_skin_binds<class_GLTFState_property_use_named_skin_binds>` | ``false`` |
  32. +-------------------------------------------------+----------------------------------------------------------------------------+------------------------+
  33. Methods
  34. -------
  35. +-------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  36. | void | :ref:`add_used_extension<class_GLTFState_method_add_used_extension>` **(** :ref:`String<class_String>` extension_name, :ref:`bool<class_bool>` required **)** |
  37. +-------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  38. | :ref:`GLTFAccessor[]<class_GLTFAccessor>` | :ref:`get_accessors<class_GLTFState_method_get_accessors>` **(** **)** |
  39. +-------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  40. | :ref:`Variant<class_Variant>` | :ref:`get_additional_data<class_GLTFState_method_get_additional_data>` **(** :ref:`StringName<class_StringName>` extension_name **)** |
  41. +-------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  42. | :ref:`AnimationPlayer<class_AnimationPlayer>` | :ref:`get_animation_player<class_GLTFState_method_get_animation_player>` **(** :ref:`int<class_int>` idx **)** |
  43. +-------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  44. | :ref:`int<class_int>` | :ref:`get_animation_players_count<class_GLTFState_method_get_animation_players_count>` **(** :ref:`int<class_int>` idx **)** |
  45. +-------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  46. | :ref:`GLTFAnimation[]<class_GLTFAnimation>` | :ref:`get_animations<class_GLTFState_method_get_animations>` **(** **)** |
  47. +-------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  48. | :ref:`GLTFBufferView[]<class_GLTFBufferView>` | :ref:`get_buffer_views<class_GLTFState_method_get_buffer_views>` **(** **)** |
  49. +-------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  50. | :ref:`GLTFCamera[]<class_GLTFCamera>` | :ref:`get_cameras<class_GLTFState_method_get_cameras>` **(** **)** |
  51. +-------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  52. | :ref:`Texture2D[]<class_Texture2D>` | :ref:`get_images<class_GLTFState_method_get_images>` **(** **)** |
  53. +-------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  54. | :ref:`GLTFLight[]<class_GLTFLight>` | :ref:`get_lights<class_GLTFState_method_get_lights>` **(** **)** |
  55. +-------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  56. | :ref:`BaseMaterial3D[]<class_BaseMaterial3D>` | :ref:`get_materials<class_GLTFState_method_get_materials>` **(** **)** |
  57. +-------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  58. | :ref:`GLTFMesh[]<class_GLTFMesh>` | :ref:`get_meshes<class_GLTFState_method_get_meshes>` **(** **)** |
  59. +-------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  60. | :ref:`GLTFNode[]<class_GLTFNode>` | :ref:`get_nodes<class_GLTFState_method_get_nodes>` **(** **)** |
  61. +-------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  62. | :ref:`Node<class_Node>` | :ref:`get_scene_node<class_GLTFState_method_get_scene_node>` **(** :ref:`int<class_int>` idx **)** |
  63. +-------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  64. | :ref:`Dictionary<class_Dictionary>` | :ref:`get_skeleton_to_node<class_GLTFState_method_get_skeleton_to_node>` **(** **)** |
  65. +-------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  66. | :ref:`GLTFSkeleton[]<class_GLTFSkeleton>` | :ref:`get_skeletons<class_GLTFState_method_get_skeletons>` **(** **)** |
  67. +-------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  68. | :ref:`GLTFSkin[]<class_GLTFSkin>` | :ref:`get_skins<class_GLTFState_method_get_skins>` **(** **)** |
  69. +-------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  70. | :ref:`GLTFTextureSampler[]<class_GLTFTextureSampler>` | :ref:`get_texture_samplers<class_GLTFState_method_get_texture_samplers>` **(** **)** |
  71. +-------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  72. | :ref:`GLTFTexture[]<class_GLTFTexture>` | :ref:`get_textures<class_GLTFState_method_get_textures>` **(** **)** |
  73. +-------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  74. | :ref:`String[]<class_String>` | :ref:`get_unique_animation_names<class_GLTFState_method_get_unique_animation_names>` **(** **)** |
  75. +-------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  76. | :ref:`String[]<class_String>` | :ref:`get_unique_names<class_GLTFState_method_get_unique_names>` **(** **)** |
  77. +-------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  78. | void | :ref:`set_accessors<class_GLTFState_method_set_accessors>` **(** :ref:`GLTFAccessor[]<class_GLTFAccessor>` accessors **)** |
  79. +-------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  80. | void | :ref:`set_additional_data<class_GLTFState_method_set_additional_data>` **(** :ref:`StringName<class_StringName>` extension_name, :ref:`Variant<class_Variant>` additional_data **)** |
  81. +-------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  82. | void | :ref:`set_animations<class_GLTFState_method_set_animations>` **(** :ref:`GLTFAnimation[]<class_GLTFAnimation>` animations **)** |
  83. +-------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  84. | void | :ref:`set_buffer_views<class_GLTFState_method_set_buffer_views>` **(** :ref:`GLTFBufferView[]<class_GLTFBufferView>` buffer_views **)** |
  85. +-------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  86. | void | :ref:`set_cameras<class_GLTFState_method_set_cameras>` **(** :ref:`GLTFCamera[]<class_GLTFCamera>` cameras **)** |
  87. +-------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  88. | void | :ref:`set_images<class_GLTFState_method_set_images>` **(** :ref:`Texture2D[]<class_Texture2D>` images **)** |
  89. +-------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  90. | void | :ref:`set_lights<class_GLTFState_method_set_lights>` **(** :ref:`GLTFLight[]<class_GLTFLight>` lights **)** |
  91. +-------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  92. | void | :ref:`set_materials<class_GLTFState_method_set_materials>` **(** :ref:`BaseMaterial3D[]<class_BaseMaterial3D>` materials **)** |
  93. +-------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  94. | void | :ref:`set_meshes<class_GLTFState_method_set_meshes>` **(** :ref:`GLTFMesh[]<class_GLTFMesh>` meshes **)** |
  95. +-------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  96. | void | :ref:`set_nodes<class_GLTFState_method_set_nodes>` **(** :ref:`GLTFNode[]<class_GLTFNode>` nodes **)** |
  97. +-------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  98. | void | :ref:`set_skeleton_to_node<class_GLTFState_method_set_skeleton_to_node>` **(** :ref:`Dictionary<class_Dictionary>` skeleton_to_node **)** |
  99. +-------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  100. | void | :ref:`set_skeletons<class_GLTFState_method_set_skeletons>` **(** :ref:`GLTFSkeleton[]<class_GLTFSkeleton>` skeletons **)** |
  101. +-------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  102. | void | :ref:`set_skins<class_GLTFState_method_set_skins>` **(** :ref:`GLTFSkin[]<class_GLTFSkin>` skins **)** |
  103. +-------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  104. | void | :ref:`set_texture_samplers<class_GLTFState_method_set_texture_samplers>` **(** :ref:`GLTFTextureSampler[]<class_GLTFTextureSampler>` texture_samplers **)** |
  105. +-------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  106. | void | :ref:`set_textures<class_GLTFState_method_set_textures>` **(** :ref:`GLTFTexture[]<class_GLTFTexture>` textures **)** |
  107. +-------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  108. | void | :ref:`set_unique_animation_names<class_GLTFState_method_set_unique_animation_names>` **(** :ref:`String[]<class_String>` unique_animation_names **)** |
  109. +-------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  110. | void | :ref:`set_unique_names<class_GLTFState_method_set_unique_names>` **(** :ref:`String[]<class_String>` unique_names **)** |
  111. +-------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  112. Property Descriptions
  113. ---------------------
  114. .. _class_GLTFState_property_base_path:
  115. - :ref:`String<class_String>` **base_path**
  116. +-----------+----------------------+
  117. | *Default* | ``""`` |
  118. +-----------+----------------------+
  119. | *Setter* | set_base_path(value) |
  120. +-----------+----------------------+
  121. | *Getter* | get_base_path() |
  122. +-----------+----------------------+
  123. ----
  124. .. _class_GLTFState_property_buffers:
  125. - :ref:`PackedByteArray[]<class_PackedByteArray>` **buffers**
  126. +-----------+--------------------+
  127. | *Default* | ``[]`` |
  128. +-----------+--------------------+
  129. | *Setter* | set_buffers(value) |
  130. +-----------+--------------------+
  131. | *Getter* | get_buffers() |
  132. +-----------+--------------------+
  133. ----
  134. .. _class_GLTFState_property_create_animations:
  135. - :ref:`bool<class_bool>` **create_animations**
  136. +-----------+------------------------------+
  137. | *Default* | ``true`` |
  138. +-----------+------------------------------+
  139. | *Setter* | set_create_animations(value) |
  140. +-----------+------------------------------+
  141. | *Getter* | get_create_animations() |
  142. +-----------+------------------------------+
  143. ----
  144. .. _class_GLTFState_property_glb_data:
  145. - :ref:`PackedByteArray<class_PackedByteArray>` **glb_data**
  146. +-----------+-----------------------+
  147. | *Default* | ``PackedByteArray()`` |
  148. +-----------+-----------------------+
  149. | *Setter* | set_glb_data(value) |
  150. +-----------+-----------------------+
  151. | *Getter* | get_glb_data() |
  152. +-----------+-----------------------+
  153. ----
  154. .. _class_GLTFState_property_json:
  155. - :ref:`Dictionary<class_Dictionary>` **json**
  156. +-----------+-----------------+
  157. | *Default* | ``{}`` |
  158. +-----------+-----------------+
  159. | *Setter* | set_json(value) |
  160. +-----------+-----------------+
  161. | *Getter* | get_json() |
  162. +-----------+-----------------+
  163. ----
  164. .. _class_GLTFState_property_major_version:
  165. - :ref:`int<class_int>` **major_version**
  166. +-----------+--------------------------+
  167. | *Default* | ``0`` |
  168. +-----------+--------------------------+
  169. | *Setter* | set_major_version(value) |
  170. +-----------+--------------------------+
  171. | *Getter* | get_major_version() |
  172. +-----------+--------------------------+
  173. ----
  174. .. _class_GLTFState_property_minor_version:
  175. - :ref:`int<class_int>` **minor_version**
  176. +-----------+--------------------------+
  177. | *Default* | ``0`` |
  178. +-----------+--------------------------+
  179. | *Setter* | set_minor_version(value) |
  180. +-----------+--------------------------+
  181. | *Getter* | get_minor_version() |
  182. +-----------+--------------------------+
  183. ----
  184. .. _class_GLTFState_property_root_nodes:
  185. - :ref:`PackedInt32Array<class_PackedInt32Array>` **root_nodes**
  186. +-----------+------------------------+
  187. | *Default* | ``PackedInt32Array()`` |
  188. +-----------+------------------------+
  189. | *Setter* | set_root_nodes(value) |
  190. +-----------+------------------------+
  191. | *Getter* | get_root_nodes() |
  192. +-----------+------------------------+
  193. ----
  194. .. _class_GLTFState_property_scene_name:
  195. - :ref:`String<class_String>` **scene_name**
  196. +-----------+-----------------------+
  197. | *Default* | ``""`` |
  198. +-----------+-----------------------+
  199. | *Setter* | set_scene_name(value) |
  200. +-----------+-----------------------+
  201. | *Getter* | get_scene_name() |
  202. +-----------+-----------------------+
  203. ----
  204. .. _class_GLTFState_property_use_named_skin_binds:
  205. - :ref:`bool<class_bool>` **use_named_skin_binds**
  206. +-----------+---------------------------------+
  207. | *Default* | ``false`` |
  208. +-----------+---------------------------------+
  209. | *Setter* | set_use_named_skin_binds(value) |
  210. +-----------+---------------------------------+
  211. | *Getter* | get_use_named_skin_binds() |
  212. +-----------+---------------------------------+
  213. Method Descriptions
  214. -------------------
  215. .. _class_GLTFState_method_add_used_extension:
  216. - void **add_used_extension** **(** :ref:`String<class_String>` extension_name, :ref:`bool<class_bool>` required **)**
  217. Appends an extension to the list of extensions used by this GLTF file during serialization. If ``required`` is true, the extension will also be added to the list of required extensions. Do not run this in :ref:`GLTFDocumentExtension._export_post<class_GLTFDocumentExtension_method__export_post>`, as that stage is too late to add extensions. The final list is sorted alphabetically.
  218. ----
  219. .. _class_GLTFState_method_get_accessors:
  220. - :ref:`GLTFAccessor[]<class_GLTFAccessor>` **get_accessors** **(** **)**
  221. ----
  222. .. _class_GLTFState_method_get_additional_data:
  223. - :ref:`Variant<class_Variant>` **get_additional_data** **(** :ref:`StringName<class_StringName>` extension_name **)**
  224. Gets additional arbitrary data in this ``GLTFState`` instance. This can be used to keep per-file state data in :ref:`GLTFDocumentExtension<class_GLTFDocumentExtension>` classes, which is important because they are stateless.
  225. The argument should be the :ref:`GLTFDocumentExtension<class_GLTFDocumentExtension>` name (does not have to match the extension name in the GLTF file), and the return value can be anything you set. If nothing was set, the return value is null.
  226. ----
  227. .. _class_GLTFState_method_get_animation_player:
  228. - :ref:`AnimationPlayer<class_AnimationPlayer>` **get_animation_player** **(** :ref:`int<class_int>` idx **)**
  229. ----
  230. .. _class_GLTFState_method_get_animation_players_count:
  231. - :ref:`int<class_int>` **get_animation_players_count** **(** :ref:`int<class_int>` idx **)**
  232. ----
  233. .. _class_GLTFState_method_get_animations:
  234. - :ref:`GLTFAnimation[]<class_GLTFAnimation>` **get_animations** **(** **)**
  235. ----
  236. .. _class_GLTFState_method_get_buffer_views:
  237. - :ref:`GLTFBufferView[]<class_GLTFBufferView>` **get_buffer_views** **(** **)**
  238. ----
  239. .. _class_GLTFState_method_get_cameras:
  240. - :ref:`GLTFCamera[]<class_GLTFCamera>` **get_cameras** **(** **)**
  241. ----
  242. .. _class_GLTFState_method_get_images:
  243. - :ref:`Texture2D[]<class_Texture2D>` **get_images** **(** **)**
  244. ----
  245. .. _class_GLTFState_method_get_lights:
  246. - :ref:`GLTFLight[]<class_GLTFLight>` **get_lights** **(** **)**
  247. ----
  248. .. _class_GLTFState_method_get_materials:
  249. - :ref:`BaseMaterial3D[]<class_BaseMaterial3D>` **get_materials** **(** **)**
  250. ----
  251. .. _class_GLTFState_method_get_meshes:
  252. - :ref:`GLTFMesh[]<class_GLTFMesh>` **get_meshes** **(** **)**
  253. ----
  254. .. _class_GLTFState_method_get_nodes:
  255. - :ref:`GLTFNode[]<class_GLTFNode>` **get_nodes** **(** **)**
  256. ----
  257. .. _class_GLTFState_method_get_scene_node:
  258. - :ref:`Node<class_Node>` **get_scene_node** **(** :ref:`int<class_int>` idx **)**
  259. ----
  260. .. _class_GLTFState_method_get_skeleton_to_node:
  261. - :ref:`Dictionary<class_Dictionary>` **get_skeleton_to_node** **(** **)**
  262. ----
  263. .. _class_GLTFState_method_get_skeletons:
  264. - :ref:`GLTFSkeleton[]<class_GLTFSkeleton>` **get_skeletons** **(** **)**
  265. ----
  266. .. _class_GLTFState_method_get_skins:
  267. - :ref:`GLTFSkin[]<class_GLTFSkin>` **get_skins** **(** **)**
  268. ----
  269. .. _class_GLTFState_method_get_texture_samplers:
  270. - :ref:`GLTFTextureSampler[]<class_GLTFTextureSampler>` **get_texture_samplers** **(** **)**
  271. Retrieves the array of texture samplers that are used by the textures contained in the GLTF.
  272. ----
  273. .. _class_GLTFState_method_get_textures:
  274. - :ref:`GLTFTexture[]<class_GLTFTexture>` **get_textures** **(** **)**
  275. ----
  276. .. _class_GLTFState_method_get_unique_animation_names:
  277. - :ref:`String[]<class_String>` **get_unique_animation_names** **(** **)**
  278. ----
  279. .. _class_GLTFState_method_get_unique_names:
  280. - :ref:`String[]<class_String>` **get_unique_names** **(** **)**
  281. ----
  282. .. _class_GLTFState_method_set_accessors:
  283. - void **set_accessors** **(** :ref:`GLTFAccessor[]<class_GLTFAccessor>` accessors **)**
  284. ----
  285. .. _class_GLTFState_method_set_additional_data:
  286. - void **set_additional_data** **(** :ref:`StringName<class_StringName>` extension_name, :ref:`Variant<class_Variant>` additional_data **)**
  287. Sets additional arbitrary data in this ``GLTFState`` instance. This can be used to keep per-file state data in :ref:`GLTFDocumentExtension<class_GLTFDocumentExtension>` classes, which is important because they are stateless.
  288. The first argument should be the :ref:`GLTFDocumentExtension<class_GLTFDocumentExtension>` name (does not have to match the extension name in the GLTF file), and the second argument can be anything you want.
  289. ----
  290. .. _class_GLTFState_method_set_animations:
  291. - void **set_animations** **(** :ref:`GLTFAnimation[]<class_GLTFAnimation>` animations **)**
  292. ----
  293. .. _class_GLTFState_method_set_buffer_views:
  294. - void **set_buffer_views** **(** :ref:`GLTFBufferView[]<class_GLTFBufferView>` buffer_views **)**
  295. ----
  296. .. _class_GLTFState_method_set_cameras:
  297. - void **set_cameras** **(** :ref:`GLTFCamera[]<class_GLTFCamera>` cameras **)**
  298. ----
  299. .. _class_GLTFState_method_set_images:
  300. - void **set_images** **(** :ref:`Texture2D[]<class_Texture2D>` images **)**
  301. ----
  302. .. _class_GLTFState_method_set_lights:
  303. - void **set_lights** **(** :ref:`GLTFLight[]<class_GLTFLight>` lights **)**
  304. ----
  305. .. _class_GLTFState_method_set_materials:
  306. - void **set_materials** **(** :ref:`BaseMaterial3D[]<class_BaseMaterial3D>` materials **)**
  307. ----
  308. .. _class_GLTFState_method_set_meshes:
  309. - void **set_meshes** **(** :ref:`GLTFMesh[]<class_GLTFMesh>` meshes **)**
  310. ----
  311. .. _class_GLTFState_method_set_nodes:
  312. - void **set_nodes** **(** :ref:`GLTFNode[]<class_GLTFNode>` nodes **)**
  313. ----
  314. .. _class_GLTFState_method_set_skeleton_to_node:
  315. - void **set_skeleton_to_node** **(** :ref:`Dictionary<class_Dictionary>` skeleton_to_node **)**
  316. ----
  317. .. _class_GLTFState_method_set_skeletons:
  318. - void **set_skeletons** **(** :ref:`GLTFSkeleton[]<class_GLTFSkeleton>` skeletons **)**
  319. ----
  320. .. _class_GLTFState_method_set_skins:
  321. - void **set_skins** **(** :ref:`GLTFSkin[]<class_GLTFSkin>` skins **)**
  322. ----
  323. .. _class_GLTFState_method_set_texture_samplers:
  324. - void **set_texture_samplers** **(** :ref:`GLTFTextureSampler[]<class_GLTFTextureSampler>` texture_samplers **)**
  325. Sets the array of texture samplers that are used by the textures contained in the GLTF.
  326. ----
  327. .. _class_GLTFState_method_set_textures:
  328. - void **set_textures** **(** :ref:`GLTFTexture[]<class_GLTFTexture>` textures **)**
  329. ----
  330. .. _class_GLTFState_method_set_unique_animation_names:
  331. - void **set_unique_animation_names** **(** :ref:`String[]<class_String>` unique_animation_names **)**
  332. ----
  333. .. _class_GLTFState_method_set_unique_names:
  334. - void **set_unique_names** **(** :ref:`String[]<class_String>` unique_names **)**
  335. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  336. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  337. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  338. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  339. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  340. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`