docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Test the stripped build

    After you remove submodules, test the build to ensure the game still works as expected.

    For best results, profile the build to find out which submodules to remove.

    To test the build:

    1. Run the stripped build in a browser.

    2. Enable Missing Submodule Error Handling in the Submodule Stripping Settings

    3. Check the build for:

      • "Stripped function 'X' (used in submodule 'Y') was called" (or similar) messages, either in the browser console or as an explicit error dialog, depending on the used Missing Submodule Error Handling option.
      • Unusual error messages in the browser console.
      • Missing or broken in-game elements, such as missing text, missing meshes, or corrupted textures.
    4. If the build works as expected, optimize the final build.

      Note

      If the build doesn’t work as expected, it likely needs a submodule you stripped out. Profile the build to make sure you remove only unused submodules.

    Additional resources

    • Strip submodules from a build
    • Optimize the stripped build
    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)