|
@@ -12,9 +12,9 @@
|
|
<methods>
|
|
<methods>
|
|
<method name="_convert_scene_node" qualifiers="virtual">
|
|
<method name="_convert_scene_node" qualifiers="virtual">
|
|
<return type="void" />
|
|
<return type="void" />
|
|
- <argument index="0" name="state" type="Object" />
|
|
|
|
- <argument index="1" name="gltf_node" type="Object" />
|
|
|
|
- <argument index="2" name="scene_node" type="Object" />
|
|
|
|
|
|
+ <argument index="0" name="state" type="GLTFState" />
|
|
|
|
+ <argument index="1" name="gltf_node" type="GLTFNode" />
|
|
|
|
+ <argument index="2" name="scene_node" type="Node" />
|
|
<description>
|
|
<description>
|
|
Part of the export process. This method is run after [method _export_preflight] and before [method _export_node].
|
|
Part of the export process. This method is run after [method _export_preflight] and before [method _export_node].
|
|
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 [method _export_node].
|
|
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 [method _export_node].
|
|
@@ -22,10 +22,10 @@
|
|
</method>
|
|
</method>
|
|
<method name="_export_node" qualifiers="virtual">
|
|
<method name="_export_node" qualifiers="virtual">
|
|
<return type="int" />
|
|
<return type="int" />
|
|
- <argument index="0" name="state" type="Object" />
|
|
|
|
- <argument index="1" name="gltf_node" type="Object" />
|
|
|
|
|
|
+ <argument index="0" name="state" type="GLTFState" />
|
|
|
|
+ <argument index="1" name="gltf_node" type="GLTFNode" />
|
|
<argument index="2" name="json" type="Dictionary" />
|
|
<argument index="2" name="json" type="Dictionary" />
|
|
- <argument index="3" name="node" type="Object" />
|
|
|
|
|
|
+ <argument index="3" name="node" type="Node" />
|
|
<description>
|
|
<description>
|
|
Part of the export process. This method is run after [method _convert_scene_node] and before [method _export_post].
|
|
Part of the export process. This method is run after [method _convert_scene_node] and before [method _export_post].
|
|
This method can be used to modify the final JSON of each node.
|
|
This method can be used to modify the final JSON of each node.
|
|
@@ -33,7 +33,7 @@
|
|
</method>
|
|
</method>
|
|
<method name="_export_post" qualifiers="virtual">
|
|
<method name="_export_post" qualifiers="virtual">
|
|
<return type="int" />
|
|
<return type="int" />
|
|
- <argument index="0" name="state" type="Object" />
|
|
|
|
|
|
+ <argument index="0" name="state" type="GLTFState" />
|
|
<description>
|
|
<description>
|
|
Part of the export process. This method is run last, after all other parts of the export process.
|
|
Part of the export process. This method is run last, after all other parts of the export process.
|
|
This method can be used to modify the final JSON of the generated GLTF file.
|
|
This method can be used to modify the final JSON of the generated GLTF file.
|
|
@@ -41,8 +41,8 @@
|
|
</method>
|
|
</method>
|
|
<method name="_export_preflight" qualifiers="virtual">
|
|
<method name="_export_preflight" qualifiers="virtual">
|
|
<return type="int" />
|
|
<return type="int" />
|
|
- <argument index="0" name="state" type="Object" />
|
|
|
|
- <argument index="1" name="root" type="Object" />
|
|
|
|
|
|
+ <argument index="0" name="state" type="GLTFState" />
|
|
|
|
+ <argument index="1" name="root" type="Node" />
|
|
<description>
|
|
<description>
|
|
Part of the export process. This method is run first, before all other parts of the export process.
|
|
Part of the export process. This method is run first, before all other parts of the export process.
|
|
The return value is used to determine if this [GLTFDocumentExtension] instance should be used for exporting a given GLTF file. If [constant OK], the export will use this [GLTFDocumentExtension] instance. If not overridden, [constant OK] is returned.
|
|
The return value is used to determine if this [GLTFDocumentExtension] instance should be used for exporting a given GLTF file. If [constant OK], the export will use this [GLTFDocumentExtension] instance. If not overridden, [constant OK] is returned.
|
|
@@ -50,9 +50,9 @@
|
|
</method>
|
|
</method>
|
|
<method name="_generate_scene_node" qualifiers="virtual">
|
|
<method name="_generate_scene_node" qualifiers="virtual">
|
|
<return type="Object" />
|
|
<return type="Object" />
|
|
- <argument index="0" name="state" type="Object" />
|
|
|
|
- <argument index="1" name="gltf_node" type="Object" />
|
|
|
|
- <argument index="2" name="scene_parent" type="Object" />
|
|
|
|
|
|
+ <argument index="0" name="state" type="GLTFState" />
|
|
|
|
+ <argument index="1" name="gltf_node" type="GLTFNode" />
|
|
|
|
+ <argument index="2" name="scene_parent" type="Node" />
|
|
<description>
|
|
<description>
|
|
Part of the import process. This method is run after [method _parse_node_extensions] and before [method _import_post_parse].
|
|
Part of the import process. This method is run after [method _parse_node_extensions] and before [method _import_post_parse].
|
|
Runs when generating a Godot scene node from a GLTFNode. The returned node will be added to the scene tree. Multiple nodes can be generated in this step if they are added as a child of the returned node.
|
|
Runs when generating a Godot scene node from a GLTFNode. The returned node will be added to the scene tree. Multiple nodes can be generated in this step if they are added as a child of the returned node.
|
|
@@ -67,10 +67,10 @@
|
|
</method>
|
|
</method>
|
|
<method name="_import_node" qualifiers="virtual">
|
|
<method name="_import_node" qualifiers="virtual">
|
|
<return type="int" />
|
|
<return type="int" />
|
|
- <argument index="0" name="state" type="Object" />
|
|
|
|
- <argument index="1" name="gltf_node" type="Object" />
|
|
|
|
|
|
+ <argument index="0" name="state" type="GLTFState" />
|
|
|
|
+ <argument index="1" name="gltf_node" type="GLTFNode" />
|
|
<argument index="2" name="json" type="Dictionary" />
|
|
<argument index="2" name="json" type="Dictionary" />
|
|
- <argument index="3" name="node" type="Object" />
|
|
|
|
|
|
+ <argument index="3" name="node" type="Node" />
|
|
<description>
|
|
<description>
|
|
Part of the import process. This method is run after [method _import_post_parse] and before [method _import_post].
|
|
Part of the import process. This method is run after [method _import_post_parse] and before [method _import_post].
|
|
This method can be used to make modifications to each of the generated Godot scene nodes.
|
|
This method can be used to make modifications to each of the generated Godot scene nodes.
|
|
@@ -78,8 +78,8 @@
|
|
</method>
|
|
</method>
|
|
<method name="_import_post" qualifiers="virtual">
|
|
<method name="_import_post" qualifiers="virtual">
|
|
<return type="int" />
|
|
<return type="int" />
|
|
- <argument index="0" name="state" type="Object" />
|
|
|
|
- <argument index="1" name="root" type="Object" />
|
|
|
|
|
|
+ <argument index="0" name="state" type="GLTFState" />
|
|
|
|
+ <argument index="1" name="root" type="Node" />
|
|
<description>
|
|
<description>
|
|
Part of the import process. This method is run last, after all other parts of the import process.
|
|
Part of the import process. This method is run last, after all other parts of the import process.
|
|
This method can be used to modify the final Godot scene generated by the import process.
|
|
This method can be used to modify the final Godot scene generated by the import process.
|
|
@@ -87,7 +87,7 @@
|
|
</method>
|
|
</method>
|
|
<method name="_import_post_parse" qualifiers="virtual">
|
|
<method name="_import_post_parse" qualifiers="virtual">
|
|
<return type="int" />
|
|
<return type="int" />
|
|
- <argument index="0" name="state" type="Object" />
|
|
|
|
|
|
+ <argument index="0" name="state" type="GLTFState" />
|
|
<description>
|
|
<description>
|
|
Part of the import process. This method is run after [method _generate_scene_node] and before [method _import_node].
|
|
Part of the import process. This method is run after [method _generate_scene_node] and before [method _import_node].
|
|
This method can be used to modify any of the data imported so far, including any scene nodes, before running the final per-node import step.
|
|
This method can be used to modify any of the data imported so far, including any scene nodes, before running the final per-node import step.
|
|
@@ -95,7 +95,7 @@
|
|
</method>
|
|
</method>
|
|
<method name="_import_preflight" qualifiers="virtual">
|
|
<method name="_import_preflight" qualifiers="virtual">
|
|
<return type="int" />
|
|
<return type="int" />
|
|
- <argument index="0" name="state" type="Object" />
|
|
|
|
|
|
+ <argument index="0" name="state" type="GLTFState" />
|
|
<argument index="1" name="extensions" type="PoolStringArray" />
|
|
<argument index="1" name="extensions" type="PoolStringArray" />
|
|
<description>
|
|
<description>
|
|
Part of the import process. This method is run first, before all other parts of the import process.
|
|
Part of the import process. This method is run first, before all other parts of the import process.
|
|
@@ -104,8 +104,8 @@
|
|
</method>
|
|
</method>
|
|
<method name="_parse_node_extensions" qualifiers="virtual">
|
|
<method name="_parse_node_extensions" qualifiers="virtual">
|
|
<return type="int" />
|
|
<return type="int" />
|
|
- <argument index="0" name="state" type="Object" />
|
|
|
|
- <argument index="1" name="gltf_node" type="Object" />
|
|
|
|
|
|
+ <argument index="0" name="state" type="GLTFState" />
|
|
|
|
+ <argument index="1" name="gltf_node" type="GLTFNode" />
|
|
<argument index="2" name="extensions" type="Dictionary" />
|
|
<argument index="2" name="extensions" type="Dictionary" />
|
|
<description>
|
|
<description>
|
|
Part of the import process. This method is run after [method _get_supported_extensions] and before [method _generate_scene_node].
|
|
Part of the import process. This method is run after [method _get_supported_extensions] and before [method _generate_scene_node].
|