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