docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Submodule Stripping Settings reference

    Use these settings to configure submodule stripping.

    To view these settings, go to Window > Web Optimization > Submodule Stripping.

    You can also view the settings of individual SubmoduleStrippingSettings assets in the Inspector window.

    SubmoduleStrippingSettings in the Inspector window.
    The Submodule Stripping Settings in the Unity Editor
    A: Add new builds and review a list of existing builds. Only builds created while this package was installed are listed.
    B: Options to configure and run submodule stripping settings on the selected build.
    C: Information about the selected build and shortcuts to the Player Settings and Build Profiles windows.

    Stripping Settings

    Property Description
    Strip Automatically After Build Enable automatic submodule stripping at the end of each player build.
    Stripping Settings The currently active submodule stripping settings for the project.
    Optimize Code After Stripping Enable an additional compiler optimization pass after submodule stripping. This will increase the build time. Refer to Optimize the stripped build for more information.
    Remove Embedded Debug Symbols Remove embedded debug symbols after stripping. Debug symbols are required to identify functions during stripping, but they increase the size of WebAssembly files. Use on release builds if debug symbols aren't required for other uses cases.
    Missing Submodule Error Handling Choose the error handling behavior when a build tries to use a function of a stripped submodule. For the release build, use the Ignore option.
    Ignore No error-handling action occurs.
    Log Error An error message is printed in the browser console.
    Throw Exception The build throws an exception and stops execution.
    Submodules To Strip Lists the submodules to strip from the build. Select Select Submodules to add or remove submodules.

    Stripping actions

    Actions Description
    Strip Strip the selected submodules from the build.
    Strip and Run Strip the selected submodules from the build and run the build in the browser.
    Run Run the build in the browser.
    Add Profiling Add submodule profiling to the build.
    Restore Restore the build to its original state.

    Additional resources

    • Strip submodules from a build
    • Change the active stripping settings
    • Create multiple stripping settings
    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)