docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Set up your project for the BatchRendererGroup API

    Before you use BRG, your project must support it. BRG requires your project to:

    • Use the SRP Batcher. To enable the SRP Batcher, see Using the SRP Batcher.
    • Keep BRG shader variants. To do this, select Edit > Project Settings > Graphics, and set BatchRendererGroup variants to Keep all.
    • Allow unsafe code. To do this, enable the Allow ‘unsafe’ Code Player Setting.

    Note: The BatchRendererGroup uses DOTS Instancing shaders, but it doesn't require any DOTS packages. The name reflects the new data-oriented way to load instance data, and also helps with backward compatibility with existing Hybrid Renderer compatible shaders.

    For information on how to use BRG to create a basic renderer, see Creating a renderer with BatchRendererGroup.

    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)