2021-01-04 13:33:44 +00:00
<?xml version="1.0" encoding="UTF-8" ?>
2023-03-01 00:44:37 +00:00
<class name= "GLTFState" inherits= "Resource" version= "4.1" xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation= "../../../doc/class.xsd" >
2021-01-04 13:33:44 +00:00
<brief_description >
</brief_description>
<description >
</description>
<tutorials >
</tutorials>
<methods >
2022-09-18 03:06:23 +00:00
<method name= "add_used_extension" >
<return type= "void" />
<param index= "0" name= "extension_name" type= "String" />
<param index= "1" name= "required" type= "bool" />
<description >
Appends an extension to the list of extensions used by this GLTF file during serialization. If [param required] is true, the extension will also be added to the list of required extensions. Do not run this in [method GLTFDocumentExtension._export_post], as that stage is too late to add extensions. The final list is sorted alphabetically.
</description>
</method>
2021-01-04 13:33:44 +00:00
<method name= "get_accessors" >
2022-08-07 22:52:20 +00:00
<return type= "GLTFAccessor[]" />
2021-01-04 13:33:44 +00:00
<description >
</description>
</method>
2022-10-15 16:46:02 +00:00
<method name= "get_additional_data" >
<return type= "Variant" />
<param index= "0" name= "extension_name" type= "StringName" />
<description >
Gets additional arbitrary data in this [GLTFState] instance. This can be used to keep per-file state data in [GLTFDocumentExtension] classes, which is important because they are stateless.
The argument should be the [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.
</description>
</method>
2021-01-04 13:33:44 +00:00
<method name= "get_animation_player" >
2021-07-30 13:28:05 +00:00
<return type= "AnimationPlayer" />
2022-08-06 18:11:48 +00:00
<param index= "0" name= "idx" type= "int" />
2021-01-04 13:33:44 +00:00
<description >
</description>
</method>
<method name= "get_animation_players_count" >
2021-07-30 13:28:05 +00:00
<return type= "int" />
2022-08-06 18:11:48 +00:00
<param index= "0" name= "idx" type= "int" />
2021-01-04 13:33:44 +00:00
<description >
</description>
</method>
<method name= "get_animations" >
2022-08-07 22:52:20 +00:00
<return type= "GLTFAnimation[]" />
2021-01-04 13:33:44 +00:00
<description >
</description>
</method>
<method name= "get_buffer_views" >
2022-08-07 22:52:20 +00:00
<return type= "GLTFBufferView[]" />
2021-01-04 13:33:44 +00:00
<description >
</description>
</method>
<method name= "get_cameras" >
2022-08-07 22:52:20 +00:00
<return type= "GLTFCamera[]" />
2021-01-04 13:33:44 +00:00
<description >
</description>
</method>
2022-07-19 00:58:27 +00:00
<method name= "get_handle_binary_image" >
<return type= "int" />
<description >
</description>
</method>
2021-01-04 13:33:44 +00:00
<method name= "get_images" >
2022-08-07 22:52:20 +00:00
<return type= "Texture2D[]" />
2021-01-04 13:33:44 +00:00
<description >
</description>
</method>
<method name= "get_lights" >
2022-08-07 22:52:20 +00:00
<return type= "GLTFLight[]" />
2021-01-04 13:33:44 +00:00
<description >
</description>
</method>
<method name= "get_materials" >
2022-11-23 23:29:01 +00:00
<return type= "Material[]" />
2021-01-04 13:33:44 +00:00
<description >
</description>
</method>
<method name= "get_meshes" >
2022-08-07 22:52:20 +00:00
<return type= "GLTFMesh[]" />
2021-01-04 13:33:44 +00:00
<description >
</description>
</method>
<method name= "get_nodes" >
2022-08-07 22:52:20 +00:00
<return type= "GLTFNode[]" />
2021-01-04 13:33:44 +00:00
<description >
</description>
</method>
<method name= "get_scene_node" >
2021-07-30 13:28:05 +00:00
<return type= "Node" />
2022-08-06 18:11:48 +00:00
<param index= "0" name= "idx" type= "int" />
2021-01-04 13:33:44 +00:00
<description >
</description>
</method>
<method name= "get_skeletons" >
2022-08-07 22:52:20 +00:00
<return type= "GLTFSkeleton[]" />
2021-01-04 13:33:44 +00:00
<description >
</description>
</method>
<method name= "get_skins" >
2022-08-07 22:52:20 +00:00
<return type= "GLTFSkin[]" />
2021-01-04 13:33:44 +00:00
<description >
</description>
</method>
2021-10-04 15:49:42 +00:00
<method name= "get_texture_samplers" >
<return type= "GLTFTextureSampler[]" />
<description >
Retrieves the array of texture samplers that are used by the textures contained in the GLTF.
</description>
</method>
2021-01-04 13:33:44 +00:00
<method name= "get_textures" >
2022-08-07 22:52:20 +00:00
<return type= "GLTFTexture[]" />
2021-01-04 13:33:44 +00:00
<description >
</description>
</method>
2021-03-10 09:54:21 +00:00
<method name= "get_unique_animation_names" >
2022-08-07 22:52:20 +00:00
<return type= "String[]" />
2021-03-10 09:54:21 +00:00
<description >
</description>
</method>
2021-01-04 13:33:44 +00:00
<method name= "get_unique_names" >
2022-08-07 22:52:20 +00:00
<return type= "String[]" />
2021-01-04 13:33:44 +00:00
<description >
</description>
</method>
<method name= "set_accessors" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
2022-08-07 22:52:20 +00:00
<param index= "0" name= "accessors" type= "GLTFAccessor[]" />
2021-01-04 13:33:44 +00:00
<description >
</description>
</method>
2022-10-15 16:46:02 +00:00
<method name= "set_additional_data" >
<return type= "void" />
<param index= "0" name= "extension_name" type= "StringName" />
<param index= "1" name= "additional_data" type= "Variant" />
<description >
Sets additional arbitrary data in this [GLTFState] instance. This can be used to keep per-file state data in [GLTFDocumentExtension] classes, which is important because they are stateless.
The first argument should be the [GLTFDocumentExtension] name (does not have to match the extension name in the GLTF file), and the second argument can be anything you want.
</description>
</method>
2021-01-04 13:33:44 +00:00
<method name= "set_animations" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
2022-08-07 22:52:20 +00:00
<param index= "0" name= "animations" type= "GLTFAnimation[]" />
2021-01-04 13:33:44 +00:00
<description >
</description>
</method>
<method name= "set_buffer_views" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
2022-08-07 22:52:20 +00:00
<param index= "0" name= "buffer_views" type= "GLTFBufferView[]" />
2021-01-04 13:33:44 +00:00
<description >
</description>
</method>
<method name= "set_cameras" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
2022-08-07 22:52:20 +00:00
<param index= "0" name= "cameras" type= "GLTFCamera[]" />
2021-01-04 13:33:44 +00:00
<description >
</description>
</method>
2022-07-19 00:58:27 +00:00
<method name= "set_handle_binary_image" >
<return type= "void" />
<param index= "0" name= "method" type= "int" />
<description >
</description>
</method>
2021-01-04 13:33:44 +00:00
<method name= "set_images" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
2022-08-07 22:52:20 +00:00
<param index= "0" name= "images" type= "Texture2D[]" />
2021-01-04 13:33:44 +00:00
<description >
</description>
</method>
<method name= "set_lights" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
2022-08-07 22:52:20 +00:00
<param index= "0" name= "lights" type= "GLTFLight[]" />
2021-01-04 13:33:44 +00:00
<description >
</description>
</method>
<method name= "set_materials" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
2022-11-23 23:29:01 +00:00
<param index= "0" name= "materials" type= "Material[]" />
2021-01-04 13:33:44 +00:00
<description >
</description>
</method>
<method name= "set_meshes" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
2022-08-07 22:52:20 +00:00
<param index= "0" name= "meshes" type= "GLTFMesh[]" />
2021-01-04 13:33:44 +00:00
<description >
</description>
</method>
<method name= "set_nodes" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
2022-08-07 22:52:20 +00:00
<param index= "0" name= "nodes" type= "GLTFNode[]" />
2021-01-04 13:33:44 +00:00
<description >
</description>
</method>
<method name= "set_skeletons" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
2022-08-07 22:52:20 +00:00
<param index= "0" name= "skeletons" type= "GLTFSkeleton[]" />
2021-01-04 13:33:44 +00:00
<description >
</description>
</method>
<method name= "set_skins" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
2022-08-07 22:52:20 +00:00
<param index= "0" name= "skins" type= "GLTFSkin[]" />
2021-01-04 13:33:44 +00:00
<description >
</description>
</method>
2021-10-04 15:49:42 +00:00
<method name= "set_texture_samplers" >
<return type= "void" />
<param index= "0" name= "texture_samplers" type= "GLTFTextureSampler[]" />
<description >
Sets the array of texture samplers that are used by the textures contained in the GLTF.
</description>
</method>
2021-01-04 13:33:44 +00:00
<method name= "set_textures" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
2022-08-07 22:52:20 +00:00
<param index= "0" name= "textures" type= "GLTFTexture[]" />
2021-01-04 13:33:44 +00:00
<description >
</description>
</method>
2021-03-10 09:54:21 +00:00
<method name= "set_unique_animation_names" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
2022-08-07 22:52:20 +00:00
<param index= "0" name= "unique_animation_names" type= "String[]" />
2021-03-10 09:54:21 +00:00
<description >
</description>
</method>
2021-01-04 13:33:44 +00:00
<method name= "set_unique_names" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
2022-08-07 22:52:20 +00:00
<param index= "0" name= "unique_names" type= "String[]" />
2021-01-04 13:33:44 +00:00
<description >
</description>
</method>
</methods>
<members >
2022-04-09 09:35:50 +00:00
<member name= "base_path" type= "String" setter= "set_base_path" getter= "get_base_path" default= """" >
</member>
2022-08-07 22:52:20 +00:00
<member name= "buffers" type= "PackedByteArray[]" setter= "set_buffers" getter= "get_buffers" default= "[]" >
2021-01-04 13:33:44 +00:00
</member>
2022-08-09 17:39:58 +00:00
<member name= "create_animations" type= "bool" setter= "set_create_animations" getter= "get_create_animations" default= "true" >
</member>
2019-09-24 17:45:03 +00:00
<member name= "glb_data" type= "PackedByteArray" setter= "set_glb_data" getter= "get_glb_data" default= "PackedByteArray()" >
2021-01-04 13:33:44 +00:00
</member>
<member name= "json" type= "Dictionary" setter= "set_json" getter= "get_json" default= "{}" >
</member>
<member name= "major_version" type= "int" setter= "set_major_version" getter= "get_major_version" default= "0" >
</member>
<member name= "minor_version" type= "int" setter= "set_minor_version" getter= "get_minor_version" default= "0" >
</member>
2022-08-07 22:52:20 +00:00
<member name= "root_nodes" type= "PackedInt32Array" setter= "set_root_nodes" getter= "get_root_nodes" default= "PackedInt32Array()" >
2021-01-04 13:33:44 +00:00
</member>
<member name= "scene_name" type= "String" setter= "set_scene_name" getter= "get_scene_name" default= """" >
</member>
<member name= "use_named_skin_binds" type= "bool" setter= "set_use_named_skin_binds" getter= "get_use_named_skin_binds" default= "false" >
</member>
</members>
2023-01-27 11:07:53 +00:00
<constants >
<constant name= "HANDLE_BINARY_DISCARD_TEXTURES" value= "0" >
2023-01-31 07:37:55 +00:00
Discards all embedded textures and uses untextured materials.
2023-01-27 11:07:53 +00:00
</constant>
<constant name= "HANDLE_BINARY_EXTRACT_TEXTURES" value= "1" >
2023-01-31 07:37:55 +00:00
Extracts embedded textures to be reimported and compressed. Editor only. Acts as uncompressed at runtime.
2023-01-27 11:07:53 +00:00
</constant>
<constant name= "HANDLE_BINARY_EMBED_AS_BASISU" value= "2" >
2023-01-31 07:37:55 +00:00
Embeds textures VRAM compressed with Basis Universal into the generated scene.
</constant>
<constant name= "HANDLE_BINARY_EMBED_AS_UNCOMPRESSED" value= "3" >
Embeds textures compressed losslessly into the generated scene, matching old behavior.
2023-01-27 11:07:53 +00:00
</constant>
</constants>
2021-01-04 13:33:44 +00:00
</class>