From 5aafa3f54a7fd06798d8cdb9a77c1d8bce2a3789 Mon Sep 17 00:00:00 2001 From: "K. S. Ernest (iFire) Lee" Date: Sun, 20 Nov 2022 13:35:35 -0800 Subject: Add GLTFDocument documentation. Co-authored-by: Meow Co-authored-by: Aaron Franke --- modules/gltf/doc_classes/GLTFDocument.xml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/modules/gltf/doc_classes/GLTFDocument.xml b/modules/gltf/doc_classes/GLTFDocument.xml index 57727a7416..1967df5218 100644 --- a/modules/gltf/doc_classes/GLTFDocument.xml +++ b/modules/gltf/doc_classes/GLTFDocument.xml @@ -16,6 +16,8 @@ + Takes a [PackedByteArray] defining a gLTF and returns a [GLTFState] object through the [param state] parameter. + [b]Note:[/b] The [param base_path] tells [method append_from_buffer] where to find dependencies and can be empty. @@ -26,6 +28,8 @@ + Takes a path to a gLTF file and returns a [GLTFState] object through the [param state] parameter. + [b]Note:[/b] The [param base_path] tells [method append_from_file] where to find dependencies and can be empty. @@ -35,12 +39,14 @@ + Takes a Godot Engine scene node and returns a [GLTFState] object through the [param state] parameter. + Takes a [GLTFState] object through the [param state] parameter and returns a gLTF [PackedByteArray]. @@ -48,6 +54,7 @@ + Takes a [GLTFState] object through the [param state] parameter and returns a Godot Engine scene node. @@ -64,6 +71,8 @@ + Takes a [GLTFState] object through the [param state] parameter and writes a glTF file to the filesystem. + [b]Note:[/b] The extension of the glTF file determines if it is a .glb binary file or a .gltf file. -- cgit v1.2.3