diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-02-06 15:39:51 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-02-06 15:39:51 +0100 |
commit | 074113b97d420d593a3ce29572cb667c2dadfaa2 (patch) | |
tree | d6c5abb84ca8f720dde85b611680a986a588c733 /doc/classes/EditorImportPlugin.xml | |
parent | 9ad098f653748938b202dccccbbad3b767d2cf45 (diff) | |
parent | 91c3066c89e647e7edba3f88dd08cdb7e464f9ab (diff) |
Merge pull request #72455 from reduz/allow-reimport-appending
Support reimport appending
Diffstat (limited to 'doc/classes/EditorImportPlugin.xml')
-rw-r--r-- | doc/classes/EditorImportPlugin.xml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/classes/EditorImportPlugin.xml b/doc/classes/EditorImportPlugin.xml index 6a976d218f..1d6a642ab2 100644 --- a/doc/classes/EditorImportPlugin.xml +++ b/doc/classes/EditorImportPlugin.xml @@ -227,5 +227,14 @@ This method must be overridden to do the actual importing work. See this class' description for an example of overriding this method. </description> </method> + <method name="append_import_external_resource"> + <return type="int" enum="Error" /> + <param index="0" name="path" type="String" /> + <param index="1" name="custom_options" type="Dictionary" default="{}" /> + <param index="2" name="custom_importer" type="String" default="""" /> + <description> + This function can only be called during the [method _import] callback and it allows manually importing resources from it. This is useful when the imported file generates external resources that require importing (as example, images). Custom parameters for the ".import" file can be passed via the [param custom_options]. Additionally, in cases where multiple importers can handle a file, the [param custom_importer] ca be specified to force a specific one. This function performs a resource import and returns immediately with a success or error code. + </description> + </method> </methods> </class> |