aboutsummaryrefslogtreecommitdiff
path: root/doc/classes/EditorImportPlugin.xml
diff options
context:
space:
mode:
authorGeorge Marques2018-02-13 11:59:56 -0200
committerHein-Pieter van Braam2018-02-19 22:16:13 +0100
commitd54ac732ae6643a817ea84d8adc7dd01490220e7 (patch)
tree9c20172eb127a8e1e1cfa2aab60a06ede792b648 /doc/classes/EditorImportPlugin.xml
parent62fcd772bebf261e4d9a70cf320c2070e01750b2 (diff)
downloadgodot-d54ac732ae6643a817ea84d8adc7dd01490220e7.tar.gz
godot-d54ac732ae6643a817ea84d8adc7dd01490220e7.tar.zst
godot-d54ac732ae6643a817ea84d8adc7dd01490220e7.zip
Expose priority and order for custom import plugins
(cherry picked from commit c68948fdfaf154acc00b9b92f44875d8518957c4)
Diffstat (limited to 'doc/classes/EditorImportPlugin.xml')
-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 07d6f9227..85f3d8060 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>