2021-01-04 21:33:44 +08:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
2022-02-14 21:18:53 +08:00
|
|
|
<class name="GLTFDocument" inherits="Resource" version="4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../doc/class.xsd">
|
2021-01-04 21:33:44 +08:00
|
|
|
<brief_description>
|
|
|
|
</brief_description>
|
|
|
|
<description>
|
2021-10-20 00:06:23 +08:00
|
|
|
Append a glTF2 3d format from a file, buffer or scene and then write to the filesystem, buffer or scene.
|
2021-01-04 21:33:44 +08:00
|
|
|
</description>
|
|
|
|
<tutorials>
|
|
|
|
</tutorials>
|
|
|
|
<methods>
|
2021-10-20 00:06:23 +08:00
|
|
|
<method name="append_from_buffer">
|
|
|
|
<return type="int" enum="Error" />
|
2022-08-07 02:11:48 +08:00
|
|
|
<param index="0" name="bytes" type="PackedByteArray" />
|
|
|
|
<param index="1" name="base_path" type="String" />
|
|
|
|
<param index="2" name="state" type="GLTFState" />
|
|
|
|
<param index="3" name="flags" type="int" default="0" />
|
|
|
|
<param index="4" name="bake_fps" type="int" default="30" />
|
2021-10-20 00:06:23 +08:00
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="append_from_file">
|
|
|
|
<return type="int" enum="Error" />
|
2022-08-07 02:11:48 +08:00
|
|
|
<param index="0" name="path" type="String" />
|
|
|
|
<param index="1" name="state" type="GLTFState" />
|
|
|
|
<param index="2" name="flags" type="int" default="0" />
|
|
|
|
<param index="3" name="bake_fps" type="int" default="30" />
|
|
|
|
<param index="4" name="base_path" type="String" default="""" />
|
2021-09-10 15:54:10 +08:00
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
2021-10-20 00:06:23 +08:00
|
|
|
<method name="append_from_scene">
|
2021-09-10 15:54:10 +08:00
|
|
|
<return type="int" enum="Error" />
|
2022-08-07 02:11:48 +08:00
|
|
|
<param index="0" name="node" type="Node" />
|
|
|
|
<param index="1" name="state" type="GLTFState" />
|
|
|
|
<param index="2" name="flags" type="int" default="0" />
|
|
|
|
<param index="3" name="bake_fps" type="int" default="30" />
|
2021-10-20 00:06:23 +08:00
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="generate_buffer">
|
|
|
|
<return type="PackedByteArray" />
|
2022-08-07 02:11:48 +08:00
|
|
|
<param index="0" name="state" type="GLTFState" />
|
2021-10-20 00:06:23 +08:00
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="generate_scene">
|
|
|
|
<return type="Node" />
|
2022-08-07 02:11:48 +08:00
|
|
|
<param index="0" name="state" type="GLTFState" />
|
|
|
|
<param index="1" name="bake_fps" type="int" default="30" />
|
2021-10-20 00:06:23 +08:00
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="write_to_filesystem">
|
|
|
|
<return type="int" enum="Error" />
|
2022-08-07 02:11:48 +08:00
|
|
|
<param index="0" name="state" type="GLTFState" />
|
|
|
|
<param index="1" name="path" type="String" />
|
2021-09-10 15:54:10 +08:00
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
2021-01-04 21:33:44 +08:00
|
|
|
</methods>
|
2021-09-21 09:24:31 +08:00
|
|
|
<members>
|
2021-10-04 23:58:28 +08:00
|
|
|
<member name="extensions" type="GLTFDocumentExtension[]" setter="set_extensions" getter="get_extensions" default="[]">
|
2021-09-21 09:24:31 +08:00
|
|
|
</member>
|
|
|
|
</members>
|
2021-01-04 21:33:44 +08:00
|
|
|
</class>
|