docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Strip shader variants from test builds

    To reduce build times and the size of the built Unity Player, remove shader variants you don't need when you build a test.

    For more information about shader variants, refer to Introduction to shader variants.

    Follow these steps:

    1. Create a shader variant collection with the shaders your project uses.

    2. In the Graphics Tests window, select Settings and make sure Enable Shader Stripping is enabled.

    3. From the main menu, select Assets > Create > Graphics Test Framework > Shader Variant List to create a shader variant list.

    4. Select Update Shader Variants From SVC and select your shader variant collection.

    Unity now includes only the shader variants in the shader variant list in your test builds.

    You can also create a list of shader variants from Unity log files. For more information, refer to Shader Variant List Import Settings Inspector window reference.

    Additional resources

    • Customizing and optimizing tests
    • Deduplicate reference images
    In This Article
    Back to top
    Copyright © 2026 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)