docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class WebBuildSettings

    A structure that gathers up all pertinent Web Build Settings defined in UnityEditor.EditorUserBuildSettings.

    Inheritance
    object
    WebBuildSettings
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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
    WebPlayerSettings
    WebPlayerSettingsScope

    Fields

    buildWithDeepProfilingSupport

    Refer to EditorUserBuildSettings.buildWithDeepProfilingSupport.

    Declaration
    public bool buildWithDeepProfilingSupport
    Field Value
    Type Description
    bool
    See Also
    WebPlayerSettings
    WebPlayerSettingsScope

    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
    WebPlayerSettings
    WebPlayerSettingsScope

    connectProfiler

    Refer to EditorUserBuildSettings.connectProfiler.

    Declaration
    public bool connectProfiler
    Field Value
    Type Description
    bool
    See Also
    WebPlayerSettings
    WebPlayerSettingsScope

    development

    Refer to EditorUserBuildSettings.development.

    Declaration
    public bool development
    Field Value
    Type Description
    bool
    See Also
    WebPlayerSettings
    WebPlayerSettingsScope

    webGLBuildSubtarget

    Texture compression override. Refer to EditorUserBuildSettings.webGLBuildSubtarget.

    Declaration
    public WebGLTextureSubtarget webGLBuildSubtarget
    Field Value
    Type Description
    WebGLTextureSubtarget
    See Also
    WebPlayerSettings
    WebPlayerSettingsScope

    Methods

    FromEditorUserBuildSettings()

    Constructs a new WebBuildSettings with values read from current build settings.

    Declaration
    public static WebBuildSettings FromEditorUserBuildSettings()
    Returns
    Type Description
    WebBuildSettings

    WebPlayerSettings with the current Player settings.

    See Also
    WebPlayerSettings
    WebPlayerSettingsScope

    ReadFromEditorUserBuildSettings()

    Applies the current build settings to this object.

    Declaration
    public void ReadFromEditorUserBuildSettings()
    See Also
    WebPlayerSettings
    WebPlayerSettingsScope

    WriteToEditorUserBuildSettings()

    Applies the settings to UnityEditor.EditorUserBuildSettings.

    Declaration
    public void WriteToEditorUserBuildSettings()
    See Also
    WebPlayerSettings
    WebPlayerSettingsScope

    See Also

    WebPlayerSettings
    WebPlayerSettingsScope
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)