Introduction to 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.
- In the ShaderA program that runs on the GPU. More info
See in Glossary Stripping 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, follow these steps:
- Open the Graphics settings window.
- In the Additional Shader Stripping Settings section, select Export Shader Variants.
- Build your project.
- In the folder with your project files, open
Temp/graphics-settings-stripping.json
and Temp/shader-stripping.json
.
Additional resources
Introduction to reducing shader variants in URP
Strip feature shader variants in URP
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。