docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class WebBuildProcessor

    Can be used to add submodule profiling to a build, and perform submodule stripping for a build.

    Inheritance
    object
    WebBuildProcessor
    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
    public class WebBuildProcessor

    Methods

    InstrumentBuild(WebBuildReport)

    Adds submodule profiling to a build.

    Declaration
    public static bool InstrumentBuild(WebBuildReport build)
    Parameters
    Type Name Description
    WebBuildReport build

    The Web build.

    Returns
    Type Description
    bool

    Returns 'true' if the build was successfully instrumented, 'false' otherwise.

    Remarks

    Shows a progress bar. This option isn't available for stripped builds or builds that are already instrumented for submodule profiling.

    RemoveInstrumentationFromBuild(WebBuildReport)

    Remove submodule profiling from build. This restores the backup files of the WebAssembly and JavaScript Framework and deletes any additional TemplateData, for example, icons.

    Declaration
    public static bool RemoveInstrumentationFromBuild(WebBuildReport build)
    Parameters
    Type Name Description
    WebBuildReport build

    The Web build.

    Returns
    Type Description
    bool

    Returns 'true' if submodule profiling code was removed, 'false' otherwise.

    StripBuild(WebBuildReport, SubmoduleStrippingSettings)

    Perform submodule stripping for a build.

    Declaration
    public static bool StripBuild(WebBuildReport build, SubmoduleStrippingSettings settings)
    Parameters
    Type Name Description
    WebBuildReport build

    The Web build.

    SubmoduleStrippingSettings settings

    The stripping settings to be used.

    Returns
    Type Description
    bool

    Returns 'true' if submodule stripping was performed, 'false' otherwise.

    Remarks

    Before a build is stripped, it is restored to its original state, meaning, existing submodule profiling instrumentation or submodule stripping will be reverted. Shows a progress bar.

    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)