| 1 | <?xml version="1.0" encoding="UTF-8" ?> |
| 2 | <class name="EditorExportPreset" inherits="RefCounted" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd"> |
| 3 | <brief_description> |
| 4 | Export preset configuration. |
| 5 | </brief_description> |
| 6 | <description> |
| 7 | Represents the configuration of an export preset, as created by the editor's export dialog. An [EditorExportPreset] instance is intended to be used a read-only configuration passed to the [EditorExportPlatform] methods when exporting the project. |
| 8 | </description> |
| 9 | <tutorials> |
| 10 | </tutorials> |
| 11 | <methods> |
| 12 | <method name="are_advanced_options_enabled" qualifiers="const"> |
| 13 | <return type="bool" /> |
| 14 | <description> |
| 15 | Returns [code]true[/code] if the "Advanced" toggle is enabled in the export dialog. |
| 16 | </description> |
| 17 | </method> |
| 18 | <method name="get_custom_features" qualifiers="const"> |
| 19 | <return type="String" /> |
| 20 | <description> |
| 21 | Returns a comma-separated list of custom features added to this preset, as a string. See [url=$DOCS_URL/tutorials/export/feature_tags.html]Feature tags[/url] in the documentation for more information. |
| 22 | </description> |
| 23 | </method> |
| 24 | <method name="get_customized_files" qualifiers="const"> |
| 25 | <return type="Dictionary" /> |
| 26 | <description> |
| 27 | Returns a dictionary of files selected in the "Resources" tab of the export dialog. The dictionary's keys are file paths, and its values are the corresponding export modes: [code]"strip"[/code], [code]"keep"[/code], or [code]"remove"[/code]. See also [method get_file_export_mode]. |
| 28 | </description> |
| 29 | </method> |
| 30 | <method name="get_customized_files_count" qualifiers="const"> |
| 31 | <return type="int" /> |
| 32 | <description> |
| 33 | Returns the number of files selected in the "Resources" tab of the export dialog. |
| 34 | </description> |
| 35 | </method> |
| 36 | <method name="get_encrypt_directory" qualifiers="const"> |
| 37 | <return type="bool" /> |
| 38 | <description> |
| 39 | Returns [code]true[/code] if PCK directory encryption is enabled in the export dialog. |
| 40 | </description> |
| 41 | </method> |
| 42 | <method name="get_encrypt_pck" qualifiers="const"> |
| 43 | <return type="bool" /> |
| 44 | <description> |
| 45 | Returns [code]true[/code] if PCK encryption is enabled in the export dialog. |
| 46 | </description> |
| 47 | </method> |
| 48 | <method name="get_encryption_ex_filter" qualifiers="const"> |
| 49 | <return type="String" /> |
| 50 | <description> |
| 51 | Returns file filters to exclude during PCK encryption. |
| 52 | </description> |
| 53 | </method> |
| 54 | <method name="get_encryption_in_filter" qualifiers="const"> |
| 55 | <return type="String" /> |
| 56 | <description> |
| 57 | Returns file filters to include during PCK encryption. |
| 58 | </description> |
| 59 | </method> |
| 60 | <method name="get_encryption_key" qualifiers="const"> |
| 61 | <return type="String" /> |
| 62 | <description> |
| 63 | Returns PCK encryption key. |
| 64 | </description> |
| 65 | </method> |
| 66 | <method name="get_exclude_filter" qualifiers="const"> |
| 67 | <return type="String" /> |
| 68 | <description> |
| 69 | Returns file filters to exclude during export. |
| 70 | </description> |
| 71 | </method> |
| 72 | <method name="get_export_filter" qualifiers="const"> |
| 73 | <return type="int" enum="EditorExportPreset.ExportFilter" /> |
| 74 | <description> |
| 75 | Returns export file filter mode selected in the "Resources" tab of the export dialog. |
| 76 | </description> |
| 77 | </method> |
| 78 | <method name="get_export_path" qualifiers="const"> |
| 79 | <return type="String" /> |
| 80 | <description> |
| 81 | Returns export target path. |
| 82 | </description> |
| 83 | </method> |
| 84 | <method name="get_file_export_mode" qualifiers="const"> |
| 85 | <return type="int" enum="EditorExportPreset.FileExportMode" /> |
| 86 | <param index="0" name="path" type="String" /> |
| 87 | <param index="1" name="default" type="int" enum="EditorExportPreset.FileExportMode" default="0" /> |
| 88 | <description> |
| 89 | Returns file export mode for the specified file. |
| 90 | </description> |
| 91 | </method> |
| 92 | <method name="get_files_to_export" qualifiers="const"> |
| 93 | <return type="PackedStringArray" /> |
| 94 | <description> |
| 95 | Returns array of files to export. |
| 96 | </description> |
| 97 | </method> |
| 98 | <method name="get_include_filter" qualifiers="const"> |
| 99 | <return type="String" /> |
| 100 | <description> |
| 101 | Returns file filters to include during export. |
| 102 | </description> |
| 103 | </method> |
| 104 | <method name="get_or_env" qualifiers="const"> |
| 105 | <return type="Variant" /> |
| 106 | <param index="0" name="name" type="StringName" /> |
| 107 | <param index="1" name="env_var" type="String" /> |
| 108 | <description> |
| 109 | Returns export option value or value of environment variable if it is set. |
| 110 | </description> |
| 111 | </method> |
| 112 | <method name="get_patches" qualifiers="const"> |
| 113 | <return type="PackedStringArray" /> |
| 114 | <description> |
| 115 | Returns the list of packs on which to base a patch export on. |
| 116 | </description> |
| 117 | </method> |
| 118 | <method name="get_preset_name" qualifiers="const"> |
| 119 | <return type="String" /> |
| 120 | <description> |
| 121 | Returns this export preset's name. |
| 122 | </description> |
| 123 | </method> |
| 124 | <method name="get_project_setting"> |
| 125 | <return type="Variant" /> |
| 126 | <param index="0" name="name" type="StringName" /> |
| 127 | <description> |
| 128 | Returns the value of the setting identified by [param name] using export preset feature tag overrides instead of current OS features. |
| 129 | </description> |
| 130 | </method> |
| 131 | <method name="get_script_export_mode" qualifiers="const"> |
| 132 | <return type="int" enum="EditorExportPreset.ScriptExportMode" /> |
| 133 | <description> |
| 134 | Returns the export mode used by GDScript files. [code]0[/code] for "Text", [code]1[/code] for "Binary tokens", and [code]2[/code] for "Compressed binary tokens (smaller files)". |
| 135 | </description> |
| 136 | </method> |
| 137 | <method name="get_version" qualifiers="const"> |
| 138 | <return type="String" /> |
| 139 | <param index="0" name="name" type="StringName" /> |
| 140 | <param index="1" name="windows_version" type="bool" /> |
| 141 | <description> |
| 142 | Returns the preset's version number, or fall back to the [member ProjectSettings.application/config/version] project setting if set to an empty string. |
| 143 | If [param windows_version] is [code]true[/code], formats the returned version number to be compatible with Windows executable metadata. |
| 144 | </description> |
| 145 | </method> |
| 146 | <method name="has" qualifiers="const"> |
| 147 | <return type="bool" /> |
| 148 | <param index="0" name="property" type="StringName" /> |
| 149 | <description> |
| 150 | Returns [code]true[/code] if the preset has the property named [param property]. |
| 151 | </description> |
| 152 | </method> |
| 153 | <method name="has_export_file"> |
| 154 | <return type="bool" /> |
| 155 | <param index="0" name="path" type="String" /> |
| 156 | <description> |
| 157 | Returns [code]true[/code] if the file at the specified [param path] will be exported. |
| 158 | </description> |
| 159 | </method> |
| 160 | <method name="is_dedicated_server" qualifiers="const"> |
| 161 | <return type="bool" /> |
| 162 | <description> |
| 163 | Returns [code]true[/code] if the dedicated server export mode is selected in the export dialog. |
| 164 | </description> |
| 165 | </method> |
| 166 | <method name="is_runnable" qualifiers="const"> |
| 167 | <return type="bool" /> |
| 168 | <description> |
| 169 | Returns [code]true[/code] if the "Runnable" toggle is enabled in the export dialog. |
| 170 | </description> |
| 171 | </method> |
| 172 | </methods> |
| 173 | <constants> |
| 174 | <constant name="EXPORT_ALL_RESOURCES" value="0" enum="ExportFilter"> |
| 175 | </constant> |
| 176 | <constant name="EXPORT_SELECTED_SCENES" value="1" enum="ExportFilter"> |
| 177 | </constant> |
| 178 | <constant name="EXPORT_SELECTED_RESOURCES" value="2" enum="ExportFilter"> |
| 179 | </constant> |
| 180 | <constant name="EXCLUDE_SELECTED_RESOURCES" value="3" enum="ExportFilter"> |
| 181 | </constant> |
| 182 | <constant name="EXPORT_CUSTOMIZED" value="4" enum="ExportFilter"> |
| 183 | </constant> |
| 184 | <constant name="MODE_FILE_NOT_CUSTOMIZED" value="0" enum="FileExportMode"> |
| 185 | </constant> |
| 186 | <constant name="MODE_FILE_STRIP" value="1" enum="FileExportMode"> |
| 187 | </constant> |
| 188 | <constant name="MODE_FILE_KEEP" value="2" enum="FileExportMode"> |
| 189 | </constant> |
| 190 | <constant name="MODE_FILE_REMOVE" value="3" enum="FileExportMode"> |
| 191 | </constant> |
| 192 | <constant name="MODE_SCRIPT_TEXT" value="0" enum="ScriptExportMode"> |
| 193 | </constant> |
| 194 | <constant name="MODE_SCRIPT_BINARY_TOKENS" value="1" enum="ScriptExportMode"> |
| 195 | </constant> |
| 196 | <constant name="MODE_SCRIPT_BINARY_TOKENS_COMPRESSED" value="2" enum="ScriptExportMode"> |
| 197 | </constant> |
| 198 | </constants> |
| 199 | </class> |