GLTFDocumentExtension¶
Inherits: Resource < RefCounted < Object
Inherited By: GLTFDocumentExtensionConvertImporterMesh
GLTFDocument extension class.
Description¶
Extends the functionality of the GLTFDocument class by allowing you to run arbitrary code at various stages of GLTF import or export.
To use, make a new class extending GLTFDocumentExtension, override any methods you need, make an instance of your class, and register it using GLTFDocument.register_gltf_document_extension.
Note: Like GLTFDocument itself, all GLTFDocumentExtension classes must be stateless in order to function properly. If you need to store data, use the set_additional_data
and get_additional_data
methods in GLTFState or GLTFNode.
Methods¶
Method Descriptions¶
void _convert_scene_node ( GLTFState state, GLTFNode gltf_node, Node scene_node ) virtual
Part of the export process. This method is run after _export_preflight and before _export_preserialize.
Runs when converting the data from a Godot scene node. This method can be used to process the Godot scene node data into a format that can be used by _export_node.
Error _export_node ( GLTFState state, GLTFNode gltf_node, Dictionary json, Node node ) virtual
Part of the export process. This method is run after _export_preserialize and before