docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Optimize the stripped build

    Optimize the stripped build to reduce the final build size and improve the performance of your game.

    Before optimizing:

    • Remove all unused submodules
    • Test the build
    • Enable Remove Embedded Debug Symbols in the Submodule Stripping Settings or enable external debug symbols.
    • Set Missing Submodule Error Handling to Ignore in the Submodule Stripping Settings.

    To optimize the build:

    1. In the Submodule Stripping Settings, enable Optimize Code After Stripping.
    2. Select Strip.
    Note

    Optimize Code After Stripping drastically increases the runtime of the stripping tool. Disable this setting for testing.

    Additional resources

    • Strip submodules from a build
    • Test the stripped build
    • Submodule Stripping Settings reference
    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)