summaryrefslogtreecommitdiff
path: root/doc/classes
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-02-14 00:28:40 +0100
committerGitHub <noreply@github.com>2018-02-14 00:28:40 +0100
commitc2d8960c9c75337435e29b9ca543b30df19dc8e7 (patch)
tree57cc76a2d0c61cadbd39dbe1f7d8f6a789304fdc /doc/classes
parent5a199833e96e6f24728dc3588504c8dfdf79589d (diff)
parentc68948fdfaf154acc00b9b92f44875d8518957c4 (diff)
Merge pull request #16659 from vnen/plugin_order
Expose priority and order for custom import plugins
Diffstat (limited to 'doc/classes')
-rw-r--r--doc/classes/EditorImportPlugin.xml14
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/classes/EditorImportPlugin.xml b/doc/classes/EditorImportPlugin.xml
index 07d6f92274..85f3d80607 100644
--- a/doc/classes/EditorImportPlugin.xml
+++ b/doc/classes/EditorImportPlugin.xml
@@ -64,6 +64,13 @@
Get the options and default values for the preset at this index. Returns an Array of Dictionaries with the following keys: "name", "default_value", "property_hint" (optional), "hint_string" (optional), "usage" (optional).
</description>
</method>
+ <method name="get_import_order" qualifiers="virtual">
+ <return type="int">
+ </return>
+ <description>
+ Get the order of this importer to be run when importing resources. Higher values will be called later. Use this to ensure the importer runs after the dependencies are already imported.
+ </description>
+ </method>
<method name="get_importer_name" qualifiers="virtual">
<return type="String">
</return>
@@ -97,6 +104,13 @@
Get the name of the options preset at this index.
</description>
</method>
+ <method name="get_priority" qualifiers="virtual">
+ <return type="float">
+ </return>
+ <description>
+ Get the priority of this plugin for the recognized extension. Higher priority plugins will be preferred. Default value is 1.0.
+ </description>
+ </method>
<method name="get_recognized_extensions" qualifiers="virtual">
<return type="Array">
</return>