forked from godotengine/godot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request godotengine#53813 from reduz/editor-import-plugins
- Loading branch information
Showing
21 changed files
with
507 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
doc/classes/EditorSceneImporter.xml → doc/classes/EditorSceneFormatImporter.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...bx/doc_classes/EditorSceneImporterFBX.xml → doc/classes/EditorSceneFormatImporterFBX.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...f/doc_classes/EditorSceneImporterGLTF.xml → ...classes/EditorSceneFormatImporterGLTF.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<class name="EditorScenePostImportPlugin" inherits="RefCounted" version="4.0"> | ||
<brief_description> | ||
Plugin to control and modifying the process of importing a scene. | ||
</brief_description> | ||
<description> | ||
This plugin type exists to modify the process of importing scenes, allowing to change the content as well as add importer options at every stage of the process. | ||
</description> | ||
<tutorials> | ||
</tutorials> | ||
<methods> | ||
<method name="_get_import_options" qualifiers="virtual"> | ||
<return type="void" /> | ||
<description> | ||
Override to add general import options. These will appear in the main import dock on the editor. Add options via [method add_import_option] and [method add_import_option_advanced]. | ||
</description> | ||
</method> | ||
<method name="_get_internal_import_options" qualifiers="virtual"> | ||
<return type="void" /> | ||
<argument index="0" name="category" type="int" /> | ||
<description> | ||
Override to add internal import options. These will appear in the 3D scene import dialog. Add options via [method add_import_option] and [method add_import_option_advanced]. | ||
</description> | ||
</method> | ||
<method name="_get_internal_option_update_view_required" qualifiers="virtual const"> | ||
<return type="Variant" /> | ||
<argument index="0" name="category" type="int" /> | ||
<argument index="1" name="option" type="String" /> | ||
<description> | ||
Return true whether updating the 3D view of the import dialog needs to be updated if an option has changed. | ||
</description> | ||
</method> | ||
<method name="_get_internal_option_visibility" qualifiers="virtual const"> | ||
<return type="Variant" /> | ||
<argument index="0" name="category" type="int" /> | ||
<argument index="1" name="option" type="String" /> | ||
<description> | ||
Return true or false whether a given option should be visible. Return null to ignore. | ||
</description> | ||
</method> | ||
<method name="_get_option_visibility" qualifiers="virtual const"> | ||
<return type="Variant" /> | ||
<argument index="0" name="option" type="String" /> | ||
<description> | ||
Return true or false whether a given option should be visible. Return null to ignore. | ||
</description> | ||
</method> | ||
<method name="_internal_process" qualifiers="virtual"> | ||
<return type="void" /> | ||
<argument index="0" name="category" type="int" /> | ||
<argument index="1" name="base_node" type="Node" /> | ||
<argument index="2" name="node" type="Node" /> | ||
<argument index="3" name="resource" type="Resource" /> | ||
<description> | ||
Process a specific node or resource for a given category. | ||
</description> | ||
</method> | ||
<method name="_post_process" qualifiers="virtual"> | ||
<return type="void" /> | ||
<argument index="0" name="scene" type="Node" /> | ||
<description> | ||
Post process the scene. This function is called after the final scene has been configured. | ||
</description> | ||
</method> | ||
<method name="_pre_process" qualifiers="virtual"> | ||
<return type="void" /> | ||
<argument index="0" name="scene" type="Node" /> | ||
<description> | ||
Pre Process the scene. This function is called right after the scene format loader loaded the scene and no changes have been made. | ||
</description> | ||
</method> | ||
<method name="add_import_option"> | ||
<return type="void" /> | ||
<argument index="0" name="name" type="String" /> | ||
<argument index="1" name="value" type="Variant" /> | ||
<description> | ||
Add a specific import option (name and default value only). This function can only be called from [method _get_import_options] and [method _get_internal_import_options]. | ||
</description> | ||
</method> | ||
<method name="add_import_option_advanced"> | ||
<return type="void" /> | ||
<argument index="0" name="type" type="int" enum="Variant.Type" /> | ||
<argument index="1" name="name" type="String" /> | ||
<argument index="2" name="default_value" type="Variant" /> | ||
<argument index="3" name="hint" type="int" enum="PropertyHint" default="0" /> | ||
<argument index="4" name="hint_string" type="String" default="""" /> | ||
<argument index="5" name="usage_flags" type="int" default="7" /> | ||
<description> | ||
Add a specific import option. This function can only be called from [method _get_import_options] and [method _get_internal_import_options]. | ||
</description> | ||
</method> | ||
<method name="get_option_value" qualifiers="const"> | ||
<return type="Variant" /> | ||
<argument index="0" name="name" type="StringName" /> | ||
<description> | ||
Query the value of an option. This function can only be called from those querying visibility, or processing. | ||
</description> | ||
</method> | ||
</methods> | ||
<constants> | ||
<constant name="INTERNAL_IMPORT_CATEGORY_NODE" value="0" enum="InternalImportCategory"> | ||
</constant> | ||
<constant name="INTERNAL_IMPORT_CATEGORY_MESH_3D_NODE" value="1" enum="InternalImportCategory"> | ||
</constant> | ||
<constant name="INTERNAL_IMPORT_CATEGORY_MESH" value="2" enum="InternalImportCategory"> | ||
</constant> | ||
<constant name="INTERNAL_IMPORT_CATEGORY_MATERIAL" value="3" enum="InternalImportCategory"> | ||
</constant> | ||
<constant name="INTERNAL_IMPORT_CATEGORY_ANIMATION" value="4" enum="InternalImportCategory"> | ||
</constant> | ||
<constant name="INTERNAL_IMPORT_CATEGORY_ANIMATION_NODE" value="5" enum="InternalImportCategory"> | ||
</constant> | ||
<constant name="INTERNAL_IMPORT_CATEGORY_MAX" value="6" enum="InternalImportCategory"> | ||
</constant> | ||
</constants> | ||
</class> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.