mirror of
https://github.com/stan220/godot-docs.git
synced 2026-09-08 17:28:58 +00:00
classref: Sync with current master branch
This commit is contained in:
@@ -1,45 +0,0 @@
|
||||
.. Generated automatically by doc/tools/makerst.py in Godot's source tree.
|
||||
.. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead.
|
||||
|
||||
.. _class_EditorExportPlugin:
|
||||
|
||||
EditorExportPlugin
|
||||
==================
|
||||
|
||||
**Inherits:** :ref:`Reference<class_reference>` **<** :ref:`Object<class_object>`
|
||||
|
||||
**Category:** Core
|
||||
|
||||
Brief Description
|
||||
-----------------
|
||||
|
||||
Editor plugin to control the export process.
|
||||
|
||||
Member Functions
|
||||
----------------
|
||||
|
||||
+--------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`Variant<class_variant>` | :ref:`custom_export<class_EditorExportPlugin_custom_export>` **(** :ref:`String<class_string>` name, EditorExportPlatform platform **)** virtual |
|
||||
+--------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
This plugin is added into EditorImportExport and allows to modify the behavior of the export process for individual files.
|
||||
|
||||
Member Function Description
|
||||
---------------------------
|
||||
|
||||
.. _class_EditorExportPlugin_custom_export:
|
||||
|
||||
- :ref:`Variant<class_variant>` **custom_export** **(** :ref:`String<class_string>` name, EditorExportPlatform platform **)** virtual
|
||||
|
||||
This function is called for each file exported and depending from the return value one of many things might happen.
|
||||
|
||||
1) If returned value is null, the file is exported as is.
|
||||
|
||||
2) If the returned value is a RawAray (array of bytes), the content of that array becomes the new file being exported.
|
||||
|
||||
3) If the file must also change its name when exported, then a :ref:`Dictionary<class_dictionary>` must be returned with two fields: 'name' with the new filename and 'data' with a :ref:`RawArray<class_rawarray>` containing the raw contents of the file. Even if the name is changed, the run-time will redirect the old file to the new file automatically when accessed.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user