Documentation
¶
Overview ¶
Package EditorExportPreset provides methods for working with EditorExportPreset object instances.
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) 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
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.
var Nil Instance
Nil is a nil/null instance of the class. Equivalent to the zero value.
func (Instance) AreAdvancedOptionsEnabled ¶
Returns [code]true[/code] if "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 string with a comma separated list of custom features.
func (Instance) GetCustomizedFiles ¶
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].
func (Instance) GetCustomizedFilesCount ¶
Returns number of files selected in the "Resources" tab of the export dialog.
func (Instance) GetEncryptDirectory ¶
Returns [code]true[/code], PCK directory encryption is enabled in the export dialog.
func (Instance) GetEncryptPck ¶
Returns [code]true[/code], 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 export preset name.
func (Instance) GetScriptExportMode ¶
Returns script export mode.
func (Instance) GetVersion ¶
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.
func (Instance) HasExportFile ¶
Returns [code]true[/code] if specified file is exported.
func (Instance) IsDedicatedServer ¶
Returns [code]true[/code] if dedicated server export mode is selected in the export dialog.
func (Instance) IsRunnable ¶
Returns [code]true[/code] if "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 )