Class WebBuildSettings
A structure that gathers up all pertinent Web Build Settings
defined in UnityEditor.EditorUserBuildSettings.
Inherited Members
Namespace: Unity.Web.Stripping.Editor
Assembly: Unity.Web.Stripping.Editor.dll
Syntax
[Serializable]
public class WebBuildSettings
Constructors
WebBuildSettings()
Constructs with default-initialized values.
Declaration
public WebBuildSettings()
See Also
Fields
buildWithDeepProfilingSupport
Declaration
public bool buildWithDeepProfilingSupport
Field Value
| Type | Description |
|---|---|
| bool |
See Also
codeOptimization
Refer to the description of Code Optimization in Web Build Settings.
The values used here are the UnityEditor.WebGL.WasmCodeOptimization values as strings, not the UI strings visible to the user.
Declaration
public string codeOptimization
Field Value
| Type | Description |
|---|---|
| string |
See Also
connectProfiler
Refer to EditorUserBuildSettings.connectProfiler.
Declaration
public bool connectProfiler
Field Value
| Type | Description |
|---|---|
| bool |
See Also
development
Refer to EditorUserBuildSettings.development.
Declaration
public bool development
Field Value
| Type | Description |
|---|---|
| bool |
See Also
webGLBuildSubtarget
Texture compression override.
Refer to EditorUserBuildSettings.webGLBuildSubtarget.
Declaration
public WebGLTextureSubtarget webGLBuildSubtarget
Field Value
| Type | Description |
|---|---|
| WebGLTextureSubtarget |
See Also
Methods
FromEditorUserBuildSettings()
Constructs a new WebBuildSettings with values read from current build settings.
Declaration
public static WebBuildSettings FromEditorUserBuildSettings()
Returns
| Type | Description |
|---|---|
| WebBuildSettings |
|
See Also
ReadFromEditorUserBuildSettings()
Applies the current build settings to this object.
Declaration
public void ReadFromEditorUserBuildSettings()
See Also
WriteToEditorUserBuildSettings()
Applies the settings to UnityEditor.EditorUserBuildSettings.
Declaration
public void WriteToEditorUserBuildSettings()