EditorExportPreset
继承: RefCounted
< Object
Export preset configuration.
描述
Export preset configuration. Instances of EditorExportPreset by editor UI and intended to be used a read-only configuration passed to the EditorExportPlatform
methods when exporting the project.
方法
枚举
enum ExportFilter:
ExportFilter EXPORT_ALL_RESOURCES = 0
该枚举目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>
\ 吧!
ExportFilter EXPORT_SELECTED_SCENES = 1
该枚举目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>
\ 吧!
ExportFilter EXPORT_SELECTED_RESOURCES = 2
该枚举目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>
\ 吧!
ExportFilter EXCLUDE_SELECTED_RESOURCES = 3
该枚举目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>
\ 吧!
ExportFilter EXPORT_CUSTOMIZED = 4
该枚举目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>
\ 吧!
enum FileExportMode:
FileExportMode MODE_FILE_NOT_CUSTOMIZED = 0
该枚举目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>
\ 吧!
FileExportMode MODE_FILE_STRIP = 1
该枚举目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>
\ 吧!
FileExportMode MODE_FILE_KEEP = 2
该枚举目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>
\ 吧!
FileExportMode MODE_FILE_REMOVE = 3
该枚举目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>
\ 吧!
enum ScriptExportMode:
ScriptExportMode MODE_SCRIPT_TEXT = 0
该枚举目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>
\ 吧!
ScriptExportMode MODE_SCRIPT_BINARY_TOKENS = 1
该枚举目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>
\ 吧!
ScriptExportMode MODE_SCRIPT_BINARY_TOKENS_COMPRESSED = 2
该枚举目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>
\ 吧!
方法说明
bool
are_advanced_options_enabled ( ) const1
Returns true
, is "Advanced" toggle is enabled in the export dialog.
String
get_custom_features ( ) const1
Returns string with a comma separated list of custom features.
Dictionary
get_customized_files ( ) const1
Returns Dictionary
of files selected in the "Resources" tab of the export dialog. Dictionary keys are file names and values are export mode - "strip
, "keep"
, or "remove"
. See also get_file_export_mode
.
int
get_customized_files_count ( ) const1
Returns number of files selected in the "Resources" tab of the export dialog.
bool
get_encrypt_directory ( ) const1
Returns true
, PCK directory encryption is enabled in the export dialog.
bool
get_encrypt_pck ( ) const1
Returns true
, PCK encryption is enabled in the export dialog.
String
get_encryption_ex_filter ( ) const1
Returns file filters to exclude during PCK encryption.
String
get_encryption_in_filter ( ) const1
Returns file filters to include during PCK encryption.
String
get_encryption_key ( ) const1
Returns PCK encryption key.
String
get_exclude_filter ( ) const1
Returns file filters to exclude during export.
ExportFilter get_export_filter ( ) const1
Returns export file filter mode selected in the "Resources" tab of the export dialog.
String
get_export_path ( ) const1
Returns export target path.
FileExportMode get_file_export_mode ( path: String
, default: FileExportMode = 0 ) const1
Returns file export mode for the specified file.
PackedStringArray
get_files_to_export ( ) const1
Returns array of files to export.
String
get_include_filter ( ) const1
Returns file filters to include during export.
Variant
get_or_env ( name: StringName
, env_var: String
) const1
Returns export option value or value of environment variable if it is set.
PackedStringArray
get_patches ( ) const1
Returns the list of packs on which to base a patch export on.
String
get_preset_name ( ) const1
Returns export preset name.
int
get_script_export_mode ( ) const1
Returns script export mode.
String
get_version ( name: StringName
, windows_version: bool
) const1
Returns the preset's version number, or fall back to the ProjectSettings.application/config/version
project setting if set to an empty string.
If windows_version
is true
, formats the returned version number to be compatible with Windows executable metadata.
bool
has ( property: StringName
) const1
Returns true
if preset has specified property.
bool
has_export_file ( path: String
)
Returns true
if specified file is exported.
bool
is_dedicated_server ( ) const1
Returns true
if dedicated server export mode is selected in the export dialog.
Returns true
if "Runnable" toggle is enabled in the export dialog.
本方法通常需要用户覆盖才能生效。
本方法无副作用,不会修改该实例的任何成员变量。
本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。
本方法用于构造某个类型。
调用本方法无需实例,可直接使用类名进行调用。
本方法描述的是使用本类型作为左操作数的有效运算符。
这个值是由下列位标志构成位掩码的整数。
无返回值。