Class OptionBuildSettings
Inheritance
System.Object
Option<UnityEditor.BuildOptions>
OptionEnum<UnityEditor.BuildOptions>
OptionBuildSettings
Inherited Members
Namespace: sttz.Trimmer.Options
Assembly: Trimmer.dll
Syntax
[Capabilities(OptionCapabilities.ConfiguresBuild)]
public class OptionBuildSettings : OptionEnum<BuildOptions>
Methods
| Improve this Doc View SourceConfigure()
Declaration
protected override void Configure()
Overrides
| Improve this Doc View SourceEditGUI()
Unity's EnumMaskPopup doesn't work with enums where the flags are not neatly sorted and without gaps, so it doesn't work with BuildOptions. We implement a custom menu here to work around this and can also hide some obsolete options (which have been set to 0) and sort them alphabetically.
Declaration
public override bool EditGUI()
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
sttz.Trimmer.BaseOptions.OptionEnum<UnityEditor.BuildOptions>.EditGUI()
|
Improve this Doc
View Source
ExpandPath(String, BuildPlayerOptions)
Replace special variables in a ini file path.
Declaration
public string ExpandPath(string path, BuildPlayerOptions options)
Parameters
Type | Name | Description |
---|---|---|
System.String | path | |
UnityEditor.BuildPlayerOptions | options |
Returns
Type | Description |
---|---|
System.String |
PostprocessBuild(BuildTarget, String, OptionInclusion)
Declaration
public override void PostprocessBuild(BuildTarget target, string path, OptionInclusion inclusion)
Parameters
Type | Name | Description |
---|---|---|
UnityEditor.BuildTarget | target | |
System.String | path | |
OptionInclusion | inclusion |
Overrides
| Improve this Doc View SourcePrepareBuild(BuildPlayerOptions, OptionInclusion)
Declaration
public override BuildPlayerOptions PrepareBuild(BuildPlayerOptions options, OptionInclusion inclusion)
Parameters
Type | Name | Description |
---|---|---|
UnityEditor.BuildPlayerOptions | options | |
OptionInclusion | inclusion |
Returns
Type | Description |
---|---|
UnityEditor.BuildPlayerOptions |