:github_url: hide .. DO NOT EDIT THIS FILE!!! .. Generated automatically from Godot engine sources. .. Generator: https://github.com/godotengine/godot/tree/3.6/doc/tools/make_rst.py. .. XML source: https://github.com/godotengine/godot/tree/3.6/modules/gltf/doc_classes/GLTFDocument.xml. .. _class_GLTFDocument: GLTFDocument ============ **Inherits:** :ref:`Resource` **<** :ref:`Reference` **<** :ref:`Object` .. rst-class:: classref-introduction-group Description ----------- **Note:** This class is only compiled in editor builds. Run-time glTF loading and saving is *not* available in exported projects. References to **GLTFDocument** within a script will cause an error in an exported project. .. rst-class:: classref-reftable-group Methods ------- .. table:: :widths: auto +------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`register_gltf_document_extension` **(** :ref:`GLTFDocumentExtension` extension, :ref:`bool` first_priority=false **)** | +------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`unregister_all_gltf_document_extensions` **(** **)** | +------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`unregister_gltf_document_extension` **(** :ref:`GLTFDocumentExtension` extension **)** | +------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Method Descriptions ------------------- .. _class_GLTFDocument_method_register_gltf_document_extension: .. rst-class:: classref-method void **register_gltf_document_extension** **(** :ref:`GLTFDocumentExtension` extension, :ref:`bool` first_priority=false **)** Registers the given :ref:`GLTFDocumentExtension` instance with GLTFDocument. If ``first_priority`` is true, this extension will be run first. Otherwise, it will be run last. \ **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 :ref:`GLTFState` or :ref:`GLTFNode`. .. rst-class:: classref-item-separator ---- .. _class_GLTFDocument_method_unregister_all_gltf_document_extensions: .. rst-class:: classref-method void **unregister_all_gltf_document_extensions** **(** **)** Unregisters all :ref:`GLTFDocumentExtension` instances. .. rst-class:: classref-item-separator ---- .. _class_GLTFDocument_method_unregister_gltf_document_extension: .. rst-class:: classref-method void **unregister_gltf_document_extension** **(** :ref:`GLTFDocumentExtension` extension **)** Unregisters the given :ref:`GLTFDocumentExtension` instance. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)` .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)` .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)` .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`