Up to date
This page is up to date for Godot
If you still find outdated information, please open an issue.
Inherits: Resource < RefCounted < Object
There is currently no description for this class. Please help us by contributing one!
Discards all embedded textures and uses untextured materials.
Extracts embedded textures to be reimported and compressed. Editor only. Acts as uncompressed at runtime.
Embeds textures VRAM compressed with Basis Universal into the generated scene.
Embeds textures compressed losslessly into the generated scene, matching old behavior.
String base_path =
PackedByteArray buffers =
void set_buffers ( PackedByteArray value )
PackedByteArray get_buffers ( )
bool create_animations =
PackedByteArray glb_data =
void set_glb_data ( PackedByteArray value )
PackedByteArray get_glb_data ( )
Dictionary json =
void set_json ( Dictionary value )
Dictionary get_json ( )
int major_version =
int minor_version =
PackedInt32Array root_nodes =
void set_root_nodes ( PackedInt32Array value )
PackedInt32Array get_root_nodes ( )
String scene_name =
bool use_named_skin_binds =
void add_used_extension ( String extension_name, bool required )
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 GLTFDocumentExtension._export_post, as that stage is too late to add extensions. The final list is sorted alphabetically.
GLTFAccessor get_accessors ( )
Variant get_additional_data ( StringName extension_name )
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.
AnimationPlayer get_animation_player ( int idx )
int get_animation_players_count ( int idx )
GLTFAnimation get_animations ( )
GLTFBufferView get_buffer_views ( )
GLTFCamera get_cameras ( )
int get_handle_binary_image ( )
Texture2D get_images ( )
GLTFLight get_lights ( )
Material get_materials ( )
GLTFMesh get_meshes ( )
GLTFNode get_nodes ( )
Node get_scene_node ( int idx )
GLTFSkeleton get_skeletons ( )
GLTFSkin get_skins ( )
GLTFTextureSampler get_texture_samplers ( )
Retrieves the array of texture samplers that are used by the textures contained in the GLTF.
GLTFTexture get_textures ( )
String get_unique_animation_names ( )
String get_unique_names ( )
void set_accessors ( GLTFAccessor accessors )
void set_additional_data ( StringName extension_name, Variant additional_data )
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.
void set_animations ( GLTFAnimation animations )
void set_buffer_views ( GLTFBufferView buffer_views )
void set_cameras ( GLTFCamera cameras )
void set_handle_binary_image ( int method )
void set_images ( Texture2D images )
void set_lights ( GLTFLight lights )
void set_materials ( Material materials )
void set_meshes ( GLTFMesh meshes )
void set_nodes ( GLTFNode nodes )
void set_skeletons ( GLTFSkeleton skeletons )
void set_skins ( GLTFSkin skins )
void set_texture_samplers ( GLTFTextureSampler texture_samplers )
Sets the array of texture samplers that are used by the textures contained in the GLTF.
void set_textures ( GLTFTexture textures )
void set_unique_animation_names ( String unique_animation_names )
void set_unique_names ( String unique_names )