class_editorexportpreset.rst 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/EditorExportPreset.xml.
  6. .. _class_EditorExportPreset:
  7. EditorExportPreset
  8. ==================
  9. **Inherits:** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. Export preset configuration.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. 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 :ref:`EditorExportPlatform<class_EditorExportPlatform>` methods when exporting the project.
  15. .. rst-class:: classref-reftable-group
  16. Methods
  17. -------
  18. .. table::
  19. :widths: auto
  20. +---------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  21. | :ref:`bool<class_bool>` | :ref:`are_advanced_options_enabled<class_EditorExportPreset_method_are_advanced_options_enabled>`\ (\ ) |const| |
  22. +---------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  23. | :ref:`String<class_String>` | :ref:`get_custom_features<class_EditorExportPreset_method_get_custom_features>`\ (\ ) |const| |
  24. +---------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  25. | :ref:`Dictionary<class_Dictionary>` | :ref:`get_customized_files<class_EditorExportPreset_method_get_customized_files>`\ (\ ) |const| |
  26. +---------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  27. | :ref:`int<class_int>` | :ref:`get_customized_files_count<class_EditorExportPreset_method_get_customized_files_count>`\ (\ ) |const| |
  28. +---------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  29. | :ref:`bool<class_bool>` | :ref:`get_encrypt_directory<class_EditorExportPreset_method_get_encrypt_directory>`\ (\ ) |const| |
  30. +---------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  31. | :ref:`bool<class_bool>` | :ref:`get_encrypt_pck<class_EditorExportPreset_method_get_encrypt_pck>`\ (\ ) |const| |
  32. +---------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  33. | :ref:`String<class_String>` | :ref:`get_encryption_ex_filter<class_EditorExportPreset_method_get_encryption_ex_filter>`\ (\ ) |const| |
  34. +---------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  35. | :ref:`String<class_String>` | :ref:`get_encryption_in_filter<class_EditorExportPreset_method_get_encryption_in_filter>`\ (\ ) |const| |
  36. +---------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  37. | :ref:`String<class_String>` | :ref:`get_encryption_key<class_EditorExportPreset_method_get_encryption_key>`\ (\ ) |const| |
  38. +---------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  39. | :ref:`String<class_String>` | :ref:`get_exclude_filter<class_EditorExportPreset_method_get_exclude_filter>`\ (\ ) |const| |
  40. +---------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  41. | :ref:`ExportFilter<enum_EditorExportPreset_ExportFilter>` | :ref:`get_export_filter<class_EditorExportPreset_method_get_export_filter>`\ (\ ) |const| |
  42. +---------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  43. | :ref:`String<class_String>` | :ref:`get_export_path<class_EditorExportPreset_method_get_export_path>`\ (\ ) |const| |
  44. +---------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  45. | :ref:`FileExportMode<enum_EditorExportPreset_FileExportMode>` | :ref:`get_file_export_mode<class_EditorExportPreset_method_get_file_export_mode>`\ (\ path\: :ref:`String<class_String>`, default\: :ref:`FileExportMode<enum_EditorExportPreset_FileExportMode>` = 0\ ) |const| |
  46. +---------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  47. | :ref:`PackedStringArray<class_PackedStringArray>` | :ref:`get_files_to_export<class_EditorExportPreset_method_get_files_to_export>`\ (\ ) |const| |
  48. +---------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  49. | :ref:`String<class_String>` | :ref:`get_include_filter<class_EditorExportPreset_method_get_include_filter>`\ (\ ) |const| |
  50. +---------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  51. | :ref:`Variant<class_Variant>` | :ref:`get_or_env<class_EditorExportPreset_method_get_or_env>`\ (\ name\: :ref:`StringName<class_StringName>`, env_var\: :ref:`String<class_String>`\ ) |const| |
  52. +---------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  53. | :ref:`PackedStringArray<class_PackedStringArray>` | :ref:`get_patches<class_EditorExportPreset_method_get_patches>`\ (\ ) |const| |
  54. +---------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  55. | :ref:`String<class_String>` | :ref:`get_preset_name<class_EditorExportPreset_method_get_preset_name>`\ (\ ) |const| |
  56. +---------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  57. | :ref:`Variant<class_Variant>` | :ref:`get_project_setting<class_EditorExportPreset_method_get_project_setting>`\ (\ name\: :ref:`StringName<class_StringName>`\ ) |
  58. +---------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  59. | :ref:`int<class_int>` | :ref:`get_script_export_mode<class_EditorExportPreset_method_get_script_export_mode>`\ (\ ) |const| |
  60. +---------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  61. | :ref:`String<class_String>` | :ref:`get_version<class_EditorExportPreset_method_get_version>`\ (\ name\: :ref:`StringName<class_StringName>`, windows_version\: :ref:`bool<class_bool>`\ ) |const| |
  62. +---------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  63. | :ref:`bool<class_bool>` | :ref:`has<class_EditorExportPreset_method_has>`\ (\ property\: :ref:`StringName<class_StringName>`\ ) |const| |
  64. +---------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  65. | :ref:`bool<class_bool>` | :ref:`has_export_file<class_EditorExportPreset_method_has_export_file>`\ (\ path\: :ref:`String<class_String>`\ ) |
  66. +---------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  67. | :ref:`bool<class_bool>` | :ref:`is_dedicated_server<class_EditorExportPreset_method_is_dedicated_server>`\ (\ ) |const| |
  68. +---------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  69. | :ref:`bool<class_bool>` | :ref:`is_runnable<class_EditorExportPreset_method_is_runnable>`\ (\ ) |const| |
  70. +---------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  71. .. rst-class:: classref-section-separator
  72. ----
  73. .. rst-class:: classref-descriptions-group
  74. Enumerations
  75. ------------
  76. .. _enum_EditorExportPreset_ExportFilter:
  77. .. rst-class:: classref-enumeration
  78. enum **ExportFilter**: :ref:`🔗<enum_EditorExportPreset_ExportFilter>`
  79. .. _class_EditorExportPreset_constant_EXPORT_ALL_RESOURCES:
  80. .. rst-class:: classref-enumeration-constant
  81. :ref:`ExportFilter<enum_EditorExportPreset_ExportFilter>` **EXPORT_ALL_RESOURCES** = ``0``
  82. .. container:: contribute
  83. There is currently no description for this enum. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  84. .. _class_EditorExportPreset_constant_EXPORT_SELECTED_SCENES:
  85. .. rst-class:: classref-enumeration-constant
  86. :ref:`ExportFilter<enum_EditorExportPreset_ExportFilter>` **EXPORT_SELECTED_SCENES** = ``1``
  87. .. container:: contribute
  88. There is currently no description for this enum. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  89. .. _class_EditorExportPreset_constant_EXPORT_SELECTED_RESOURCES:
  90. .. rst-class:: classref-enumeration-constant
  91. :ref:`ExportFilter<enum_EditorExportPreset_ExportFilter>` **EXPORT_SELECTED_RESOURCES** = ``2``
  92. .. container:: contribute
  93. There is currently no description for this enum. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  94. .. _class_EditorExportPreset_constant_EXCLUDE_SELECTED_RESOURCES:
  95. .. rst-class:: classref-enumeration-constant
  96. :ref:`ExportFilter<enum_EditorExportPreset_ExportFilter>` **EXCLUDE_SELECTED_RESOURCES** = ``3``
  97. .. container:: contribute
  98. There is currently no description for this enum. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  99. .. _class_EditorExportPreset_constant_EXPORT_CUSTOMIZED:
  100. .. rst-class:: classref-enumeration-constant
  101. :ref:`ExportFilter<enum_EditorExportPreset_ExportFilter>` **EXPORT_CUSTOMIZED** = ``4``
  102. .. container:: contribute
  103. There is currently no description for this enum. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  104. .. rst-class:: classref-item-separator
  105. ----
  106. .. _enum_EditorExportPreset_FileExportMode:
  107. .. rst-class:: classref-enumeration
  108. enum **FileExportMode**: :ref:`🔗<enum_EditorExportPreset_FileExportMode>`
  109. .. _class_EditorExportPreset_constant_MODE_FILE_NOT_CUSTOMIZED:
  110. .. rst-class:: classref-enumeration-constant
  111. :ref:`FileExportMode<enum_EditorExportPreset_FileExportMode>` **MODE_FILE_NOT_CUSTOMIZED** = ``0``
  112. .. container:: contribute
  113. There is currently no description for this enum. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  114. .. _class_EditorExportPreset_constant_MODE_FILE_STRIP:
  115. .. rst-class:: classref-enumeration-constant
  116. :ref:`FileExportMode<enum_EditorExportPreset_FileExportMode>` **MODE_FILE_STRIP** = ``1``
  117. .. container:: contribute
  118. There is currently no description for this enum. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  119. .. _class_EditorExportPreset_constant_MODE_FILE_KEEP:
  120. .. rst-class:: classref-enumeration-constant
  121. :ref:`FileExportMode<enum_EditorExportPreset_FileExportMode>` **MODE_FILE_KEEP** = ``2``
  122. .. container:: contribute
  123. There is currently no description for this enum. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  124. .. _class_EditorExportPreset_constant_MODE_FILE_REMOVE:
  125. .. rst-class:: classref-enumeration-constant
  126. :ref:`FileExportMode<enum_EditorExportPreset_FileExportMode>` **MODE_FILE_REMOVE** = ``3``
  127. .. container:: contribute
  128. There is currently no description for this enum. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  129. .. rst-class:: classref-item-separator
  130. ----
  131. .. _enum_EditorExportPreset_ScriptExportMode:
  132. .. rst-class:: classref-enumeration
  133. enum **ScriptExportMode**: :ref:`🔗<enum_EditorExportPreset_ScriptExportMode>`
  134. .. _class_EditorExportPreset_constant_MODE_SCRIPT_TEXT:
  135. .. rst-class:: classref-enumeration-constant
  136. :ref:`ScriptExportMode<enum_EditorExportPreset_ScriptExportMode>` **MODE_SCRIPT_TEXT** = ``0``
  137. .. container:: contribute
  138. There is currently no description for this enum. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  139. .. _class_EditorExportPreset_constant_MODE_SCRIPT_BINARY_TOKENS:
  140. .. rst-class:: classref-enumeration-constant
  141. :ref:`ScriptExportMode<enum_EditorExportPreset_ScriptExportMode>` **MODE_SCRIPT_BINARY_TOKENS** = ``1``
  142. .. container:: contribute
  143. There is currently no description for this enum. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  144. .. _class_EditorExportPreset_constant_MODE_SCRIPT_BINARY_TOKENS_COMPRESSED:
  145. .. rst-class:: classref-enumeration-constant
  146. :ref:`ScriptExportMode<enum_EditorExportPreset_ScriptExportMode>` **MODE_SCRIPT_BINARY_TOKENS_COMPRESSED** = ``2``
  147. .. container:: contribute
  148. There is currently no description for this enum. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  149. .. rst-class:: classref-section-separator
  150. ----
  151. .. rst-class:: classref-descriptions-group
  152. Method Descriptions
  153. -------------------
  154. .. _class_EditorExportPreset_method_are_advanced_options_enabled:
  155. .. rst-class:: classref-method
  156. :ref:`bool<class_bool>` **are_advanced_options_enabled**\ (\ ) |const| :ref:`🔗<class_EditorExportPreset_method_are_advanced_options_enabled>`
  157. Returns ``true`` if the "Advanced" toggle is enabled in the export dialog.
  158. .. rst-class:: classref-item-separator
  159. ----
  160. .. _class_EditorExportPreset_method_get_custom_features:
  161. .. rst-class:: classref-method
  162. :ref:`String<class_String>` **get_custom_features**\ (\ ) |const| :ref:`🔗<class_EditorExportPreset_method_get_custom_features>`
  163. Returns a comma-separated list of custom features added to this preset, as a string. See :doc:`Feature tags <../tutorials/export/feature_tags>` in the documentation for more information.
  164. .. rst-class:: classref-item-separator
  165. ----
  166. .. _class_EditorExportPreset_method_get_customized_files:
  167. .. rst-class:: classref-method
  168. :ref:`Dictionary<class_Dictionary>` **get_customized_files**\ (\ ) |const| :ref:`🔗<class_EditorExportPreset_method_get_customized_files>`
  169. 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: ``"strip"``, ``"keep"``, or ``"remove"``. See also :ref:`get_file_export_mode()<class_EditorExportPreset_method_get_file_export_mode>`.
  170. .. rst-class:: classref-item-separator
  171. ----
  172. .. _class_EditorExportPreset_method_get_customized_files_count:
  173. .. rst-class:: classref-method
  174. :ref:`int<class_int>` **get_customized_files_count**\ (\ ) |const| :ref:`🔗<class_EditorExportPreset_method_get_customized_files_count>`
  175. Returns the number of files selected in the "Resources" tab of the export dialog.
  176. .. rst-class:: classref-item-separator
  177. ----
  178. .. _class_EditorExportPreset_method_get_encrypt_directory:
  179. .. rst-class:: classref-method
  180. :ref:`bool<class_bool>` **get_encrypt_directory**\ (\ ) |const| :ref:`🔗<class_EditorExportPreset_method_get_encrypt_directory>`
  181. Returns ``true`` if PCK directory encryption is enabled in the export dialog.
  182. .. rst-class:: classref-item-separator
  183. ----
  184. .. _class_EditorExportPreset_method_get_encrypt_pck:
  185. .. rst-class:: classref-method
  186. :ref:`bool<class_bool>` **get_encrypt_pck**\ (\ ) |const| :ref:`🔗<class_EditorExportPreset_method_get_encrypt_pck>`
  187. Returns ``true`` if PCK encryption is enabled in the export dialog.
  188. .. rst-class:: classref-item-separator
  189. ----
  190. .. _class_EditorExportPreset_method_get_encryption_ex_filter:
  191. .. rst-class:: classref-method
  192. :ref:`String<class_String>` **get_encryption_ex_filter**\ (\ ) |const| :ref:`🔗<class_EditorExportPreset_method_get_encryption_ex_filter>`
  193. Returns file filters to exclude during PCK encryption.
  194. .. rst-class:: classref-item-separator
  195. ----
  196. .. _class_EditorExportPreset_method_get_encryption_in_filter:
  197. .. rst-class:: classref-method
  198. :ref:`String<class_String>` **get_encryption_in_filter**\ (\ ) |const| :ref:`🔗<class_EditorExportPreset_method_get_encryption_in_filter>`
  199. Returns file filters to include during PCK encryption.
  200. .. rst-class:: classref-item-separator
  201. ----
  202. .. _class_EditorExportPreset_method_get_encryption_key:
  203. .. rst-class:: classref-method
  204. :ref:`String<class_String>` **get_encryption_key**\ (\ ) |const| :ref:`🔗<class_EditorExportPreset_method_get_encryption_key>`
  205. Returns PCK encryption key.
  206. .. rst-class:: classref-item-separator
  207. ----
  208. .. _class_EditorExportPreset_method_get_exclude_filter:
  209. .. rst-class:: classref-method
  210. :ref:`String<class_String>` **get_exclude_filter**\ (\ ) |const| :ref:`🔗<class_EditorExportPreset_method_get_exclude_filter>`
  211. Returns file filters to exclude during export.
  212. .. rst-class:: classref-item-separator
  213. ----
  214. .. _class_EditorExportPreset_method_get_export_filter:
  215. .. rst-class:: classref-method
  216. :ref:`ExportFilter<enum_EditorExportPreset_ExportFilter>` **get_export_filter**\ (\ ) |const| :ref:`🔗<class_EditorExportPreset_method_get_export_filter>`
  217. Returns export file filter mode selected in the "Resources" tab of the export dialog.
  218. .. rst-class:: classref-item-separator
  219. ----
  220. .. _class_EditorExportPreset_method_get_export_path:
  221. .. rst-class:: classref-method
  222. :ref:`String<class_String>` **get_export_path**\ (\ ) |const| :ref:`🔗<class_EditorExportPreset_method_get_export_path>`
  223. Returns export target path.
  224. .. rst-class:: classref-item-separator
  225. ----
  226. .. _class_EditorExportPreset_method_get_file_export_mode:
  227. .. rst-class:: classref-method
  228. :ref:`FileExportMode<enum_EditorExportPreset_FileExportMode>` **get_file_export_mode**\ (\ path\: :ref:`String<class_String>`, default\: :ref:`FileExportMode<enum_EditorExportPreset_FileExportMode>` = 0\ ) |const| :ref:`🔗<class_EditorExportPreset_method_get_file_export_mode>`
  229. Returns file export mode for the specified file.
  230. .. rst-class:: classref-item-separator
  231. ----
  232. .. _class_EditorExportPreset_method_get_files_to_export:
  233. .. rst-class:: classref-method
  234. :ref:`PackedStringArray<class_PackedStringArray>` **get_files_to_export**\ (\ ) |const| :ref:`🔗<class_EditorExportPreset_method_get_files_to_export>`
  235. Returns array of files to export.
  236. .. rst-class:: classref-item-separator
  237. ----
  238. .. _class_EditorExportPreset_method_get_include_filter:
  239. .. rst-class:: classref-method
  240. :ref:`String<class_String>` **get_include_filter**\ (\ ) |const| :ref:`🔗<class_EditorExportPreset_method_get_include_filter>`
  241. Returns file filters to include during export.
  242. .. rst-class:: classref-item-separator
  243. ----
  244. .. _class_EditorExportPreset_method_get_or_env:
  245. .. rst-class:: classref-method
  246. :ref:`Variant<class_Variant>` **get_or_env**\ (\ name\: :ref:`StringName<class_StringName>`, env_var\: :ref:`String<class_String>`\ ) |const| :ref:`🔗<class_EditorExportPreset_method_get_or_env>`
  247. Returns export option value or value of environment variable if it is set.
  248. .. rst-class:: classref-item-separator
  249. ----
  250. .. _class_EditorExportPreset_method_get_patches:
  251. .. rst-class:: classref-method
  252. :ref:`PackedStringArray<class_PackedStringArray>` **get_patches**\ (\ ) |const| :ref:`🔗<class_EditorExportPreset_method_get_patches>`
  253. Returns the list of packs on which to base a patch export on.
  254. .. rst-class:: classref-item-separator
  255. ----
  256. .. _class_EditorExportPreset_method_get_preset_name:
  257. .. rst-class:: classref-method
  258. :ref:`String<class_String>` **get_preset_name**\ (\ ) |const| :ref:`🔗<class_EditorExportPreset_method_get_preset_name>`
  259. Returns this export preset's name.
  260. .. rst-class:: classref-item-separator
  261. ----
  262. .. _class_EditorExportPreset_method_get_project_setting:
  263. .. rst-class:: classref-method
  264. :ref:`Variant<class_Variant>` **get_project_setting**\ (\ name\: :ref:`StringName<class_StringName>`\ ) :ref:`🔗<class_EditorExportPreset_method_get_project_setting>`
  265. Returns the value of the setting identified by ``name`` using export preset feature tag overrides instead of current OS features.
  266. .. rst-class:: classref-item-separator
  267. ----
  268. .. _class_EditorExportPreset_method_get_script_export_mode:
  269. .. rst-class:: classref-method
  270. :ref:`int<class_int>` **get_script_export_mode**\ (\ ) |const| :ref:`🔗<class_EditorExportPreset_method_get_script_export_mode>`
  271. Returns the export mode used by GDScript files. ``0`` for "Text", ``1`` for "Binary tokens", and ``2`` for "Compressed binary tokens (smaller files)".
  272. .. rst-class:: classref-item-separator
  273. ----
  274. .. _class_EditorExportPreset_method_get_version:
  275. .. rst-class:: classref-method
  276. :ref:`String<class_String>` **get_version**\ (\ name\: :ref:`StringName<class_StringName>`, windows_version\: :ref:`bool<class_bool>`\ ) |const| :ref:`🔗<class_EditorExportPreset_method_get_version>`
  277. Returns the preset's version number, or fall back to the :ref:`ProjectSettings.application/config/version<class_ProjectSettings_property_application/config/version>` project setting if set to an empty string.
  278. If ``windows_version`` is ``true``, formats the returned version number to be compatible with Windows executable metadata.
  279. .. rst-class:: classref-item-separator
  280. ----
  281. .. _class_EditorExportPreset_method_has:
  282. .. rst-class:: classref-method
  283. :ref:`bool<class_bool>` **has**\ (\ property\: :ref:`StringName<class_StringName>`\ ) |const| :ref:`🔗<class_EditorExportPreset_method_has>`
  284. Returns ``true`` if the preset has the property named ``property``.
  285. .. rst-class:: classref-item-separator
  286. ----
  287. .. _class_EditorExportPreset_method_has_export_file:
  288. .. rst-class:: classref-method
  289. :ref:`bool<class_bool>` **has_export_file**\ (\ path\: :ref:`String<class_String>`\ ) :ref:`🔗<class_EditorExportPreset_method_has_export_file>`
  290. Returns ``true`` if the file at the specified ``path`` will be exported.
  291. .. rst-class:: classref-item-separator
  292. ----
  293. .. _class_EditorExportPreset_method_is_dedicated_server:
  294. .. rst-class:: classref-method
  295. :ref:`bool<class_bool>` **is_dedicated_server**\ (\ ) |const| :ref:`🔗<class_EditorExportPreset_method_is_dedicated_server>`
  296. Returns ``true`` if the dedicated server export mode is selected in the export dialog.
  297. .. rst-class:: classref-item-separator
  298. ----
  299. .. _class_EditorExportPreset_method_is_runnable:
  300. .. rst-class:: classref-method
  301. :ref:`bool<class_bool>` **is_runnable**\ (\ ) |const| :ref:`🔗<class_EditorExportPreset_method_is_runnable>`
  302. Returns ``true`` if the "Runnable" toggle is enabled in the export dialog.
  303. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  304. .. |required| replace:: :abbr:`required (This method is required to be overridden when extending its base class.)`
  305. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  306. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  307. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  308. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  309. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  310. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  311. .. |void| replace:: :abbr:`void (No return value.)`