Reducing shader variants in URP
Strip feature shader variants in URP
Check how many shader variants your build has in URP
To log how many variants Unity compiles and strips in total, follow these steps:
- Open the Graphics settings window.
- Open the URP tab.
- In the Additional ShaderA program that runs on the GPU. More info
See in Glossary Stripping Settings section, select a logging level other than Disabled.
- Build your project.
- To see the logged information, open the
Editor.log
log file and search for ShaderStrippingReport
. For the location of Editor.log
, refer to log files.
To log more detailed shader variant information, enable Export Shader Variants. After you build your project, Unity creates Temp/graphics-settings-stripping.json
and Temp/shader-stripping.json
in the folder with your project files.
Additional resources
Reducing shader variants in URP
Strip feature shader variants in URP