Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
GLTFState¶
Inherits: Resource < RefCounted < Object
Represents all data of a GLTF file.
Description¶
Contains all nodes and resources of a GLTF file. This is used by GLTFDocument as data storage, which allows GLTFDocument and all GLTFDocumentExtension classes to remain stateless.
GLTFState can be populated by GLTFDocument reading a file or by converting a Godot scene. Then the data can either be used to create a Godot scene or save to a GLTF file. The code that converts to/from a Godot scene can be intercepted at arbitrary points by GLTFDocumentExtension classes. This allows for custom data to be stored in the GLTF file or for custom data to be converted to/from Godot nodes.
Tutorials¶
Properties¶
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
Methods¶
void |
add_used_extension ( String extension_name, bool required ) |
get_accessors ( ) |
|
get_additional_data ( StringName extension_name ) |
|
get_animation_player ( int idx ) |
|
get_animation_players_count ( int idx ) |
|
get_animations ( ) |
|
get_buffer_views ( ) |
|
get_cameras ( ) |
|
get_images ( ) |
|
get_lights ( ) |
|
get_materials ( ) |
|
get_meshes ( ) |
|
get_node_index ( Node scene_node ) |
|
get_nodes ( ) |
|
get_scene_node ( int idx ) |
|
get_skeletons ( ) |
|
get_skins ( ) |
|