Documentation
¶
Overview ¶
Represents the configuration of an export preset, as created by the editor's export dialog. An graphics.gd/classdb/EditorExportPreset instance is intended to be used a read-only configuration passed to the graphics.gd/classdb/EditorExportPlatform methods when exporting the project.
Index ¶
- type Advanced
- type Any
- type Expanded
- type ExportFilter
- type Extension
- type FileExportMode
- type ID
- type Instance
- func (self Instance) AreAdvancedOptionsEnabled() bool
- func (self Instance) AsEditorExportPreset() Instance
- func (self Instance) AsObject() [1]gd.Object
- func (self Instance) AsRefCounted() [1]gd.RefCounted
- func (self Instance) GetCustomFeatures() string
- func (self Instance) GetCustomizedFiles() map[string]string
- func (self Instance) GetCustomizedFilesCount() int
- func (self Instance) GetEncryptDirectory() bool
- func (self Instance) GetEncryptPck() bool
- func (self Instance) GetEncryptionExFilter() string
- func (self Instance) GetEncryptionInFilter() string
- func (self Instance) GetEncryptionKey() string
- func (self Instance) GetExcludeFilter() string
- func (self Instance) GetExportFilter() ExportFilter
- func (self Instance) GetExportPath() string
- func (self Instance) GetFileExportMode(path string) FileExportMode
- func (self Instance) GetFilesToExport() []string
- func (self Instance) GetIncludeFilter() string
- func (self Instance) GetOrEnv(name string, env_var string) any
- func (self Instance) GetPatches() []string
- func (self Instance) GetPresetName() string
- func (self Instance) GetProjectSetting(name string) any
- func (self Instance) GetScriptExportMode() int
- func (self Instance) GetVersion(name string, windows_version bool) string
- func (self Instance) Has(property string) bool
- func (self Instance) HasExportFile(path string) bool
- func (self Instance) ID() ID
- func (self Instance) IsDedicatedServer() bool
- func (self Instance) IsRunnable() bool
- func (self *Instance) SetObject(obj [1]gd.Object) bool
- func (self Instance) Virtual(name string) reflect.Value
- type ScriptExportMode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Advanced ¶
type Advanced = class
Advanced exposes a 1:1 low-level instance of the class, undocumented, for those who know what they are doing.
type Expanded ¶
type Expanded [1]gdclass.EditorExportPreset
func (Expanded) GetFileExportMode ¶
func (self Expanded) GetFileExportMode(path string, def FileExportMode) FileExportMode
Returns file export mode for the specified file.
type ExportFilter ¶
type ExportFilter int //gd:EditorExportPreset.ExportFilter
const ( ExportAllResources ExportFilter = 0 ExportSelectedScenes ExportFilter = 1 ExportSelectedResources ExportFilter = 2 ExcludeSelectedResources ExportFilter = 3 ExportCustomized ExportFilter = 4 )
type Extension ¶
Extension can be embedded in a new struct to create an extension of this class. T should be the type that is embedding this Extension
func (*Extension[T]) AsEditorExportPreset ¶
func (*Extension[T]) AsRefCounted ¶
func (self *Extension[T]) AsRefCounted() [1]gd.RefCounted
type FileExportMode ¶
type FileExportMode int //gd:EditorExportPreset.FileExportMode
const ( ModeFileNotCustomized FileExportMode = 0 ModeFileStrip FileExportMode = 1 ModeFileKeep FileExportMode = 2 ModeFileRemove FileExportMode = 3 )
type ID ¶
ID is a typed object ID (reference) to an instance of this class, use it to store references to objects with unknown lifetimes, as an ID will not panic on use if the underlying object has been destroyed.
type Instance ¶
type Instance [1]gdclass.EditorExportPreset
Instance of the class with convieniently typed arguments and results.
var Nil Instance
Nil is a nil/null instance of the class. Equivalent to the zero value.
func (Instance) AreAdvancedOptionsEnabled ¶
Returns true if the "Advanced" toggle is enabled in the export dialog.
func (Instance) AsEditorExportPreset ¶
func (Instance) AsRefCounted ¶
func (self Instance) AsRefCounted() [1]gd.RefCounted
func (Instance) GetCustomFeatures ¶
Returns a comma-separated list of custom features added to this preset, as a string. See Feature tags in the documentation for more information.
func (Instance) GetCustomizedFiles ¶
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 Instance.GetFileExportMode.
func (Instance) GetCustomizedFilesCount ¶
Returns the number of files selected in the "Resources" tab of the export dialog.
func (Instance) GetEncryptDirectory ¶
Returns true if PCK directory encryption is enabled in the export dialog.
func (Instance) GetEncryptPck ¶
Returns true if PCK encryption is enabled in the export dialog.
func (Instance) GetEncryptionExFilter ¶
Returns file filters to exclude during PCK encryption.
func (Instance) GetEncryptionInFilter ¶
Returns file filters to include during PCK encryption.
func (Instance) GetEncryptionKey ¶
Returns PCK encryption key.
func (Instance) GetExcludeFilter ¶
Returns file filters to exclude during export.
func (Instance) GetExportFilter ¶
func (self Instance) GetExportFilter() ExportFilter
Returns export file filter mode selected in the "Resources" tab of the export dialog.
func (Instance) GetExportPath ¶
Returns export target path.
func (Instance) GetFileExportMode ¶
func (self Instance) GetFileExportMode(path string) FileExportMode
Returns file export mode for the specified file.
func (Instance) GetFilesToExport ¶
Returns array of files to export.
func (Instance) GetIncludeFilter ¶
Returns file filters to include during export.
func (Instance) GetOrEnv ¶
Returns export option value or value of environment variable if it is set.
func (Instance) GetPatches ¶
Returns the list of packs on which to base a patch export on.
func (Instance) GetPresetName ¶
Returns this export preset's name.
func (Instance) GetProjectSetting ¶
Returns the value of the setting identified by 'name' using export preset feature tag overrides instead of current OS features.
func (Instance) GetScriptExportMode ¶
Returns the export mode used by GDScript files. 0 for "Text", 1 for "Binary tokens", and 2 for "Compressed binary tokens (smaller files)".
func (Instance) GetVersion ¶
Returns the preset's version number, or fall back to the graphics.gd/classdb/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.
func (Instance) HasExportFile ¶
Returns true if the file at the specified 'path' will be exported.
func (Instance) IsDedicatedServer ¶
Returns true if the dedicated server export mode is selected in the export dialog.
func (Instance) IsRunnable ¶
Returns true if the "Runnable" toggle is enabled in the export dialog.
type ScriptExportMode ¶
type ScriptExportMode int //gd:EditorExportPreset.ScriptExportMode
const ( ModeScriptText ScriptExportMode = 0 ModeScriptBinaryTokens ScriptExportMode = 1 ModeScriptBinaryTokensCompressed ScriptExportMode = 2 )