summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-02-08 09:37:40 +0100
committerRémi Verschelde <rverschelde@gmail.com>2023-02-08 09:37:40 +0100
commit0e97806c1d5cc181aac75eb14bb62af3a0602dad (patch)
tree150863e47bb875658cc02b0e0945ba23a6119ae8
parent5c0f07b76a2a2ee68526f68e7e831d547c52d48a (diff)
parent2e167ca943309cbae165b4ece4bec62f8fdfbc24 (diff)
Merge pull request #72860 from RedworkDE/editor-export-plugin-bind
Bind `EditorExportPlugin::_get_export_features`
-rw-r--r--doc/classes/EditorExportPlugin.xml8
-rw-r--r--editor/export/editor_export_plugin.cpp1
2 files changed, 9 insertions, 0 deletions
diff --git a/doc/classes/EditorExportPlugin.xml b/doc/classes/EditorExportPlugin.xml
index 3e8ce10aa5..fd76e8ddaa 100644
--- a/doc/classes/EditorExportPlugin.xml
+++ b/doc/classes/EditorExportPlugin.xml
@@ -87,6 +87,14 @@
Return a hash based on the configuration passed (for both scenes and resources). This helps keep separate caches for separate export configurations.
</description>
</method>
+ <method name="_get_export_features" qualifiers="virtual const">
+ <return type="PackedStringArray" />
+ <param index="0" name="platform" type="EditorExportPlatform" />
+ <param index="1" name="debug" type="bool" />
+ <description>
+ Return a [PackedStringArray] of additional features this preset, for the given [param platform], should have.
+ </description>
+ </method>
<method name="_get_name" qualifiers="virtual const">
<return type="String" />
<description>
diff --git a/editor/export/editor_export_plugin.cpp b/editor/export/editor_export_plugin.cpp
index 0add55820f..5887befcd8 100644
--- a/editor/export/editor_export_plugin.cpp
+++ b/editor/export/editor_export_plugin.cpp
@@ -229,6 +229,7 @@ void EditorExportPlugin::_bind_methods() {
GDVIRTUAL_BIND(_end_customize_scenes);
GDVIRTUAL_BIND(_end_customize_resources);
+ GDVIRTUAL_BIND(_get_export_features, "platform", "debug");
GDVIRTUAL_BIND(_get_name);
}