Set up your project for the BatchRendererGroup API in URP
Describes the requirements and compatibility of BRG and explains how to set up your project to support BRG.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
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 > > Graphics, and set BatchRendererGroup variants to Keep all.Project Settings
?
- If your project uses URP, it's best practice to disable the Strip Unused Variants Global Setting. This helps to avoid problems with Unity stripping necessary DOTS Instancing variants. For more information, see DOTS Instancing shaders. To find this setting, select Edit > Project Settings > URP Global Settings.
- Allow unsafe code. To do this, enable the Allow ‘unsafe’ Code Player Setting.
For information on how to use BRG to create a basic renderer, see Creating a renderer with BatchRendererGroup.