Window Stats
beginner conceptsShader Control · Core Concepts
Window Statistics
The statistics bar at the bottom of Shader Control displays key metrics about your project's shaders. The numbers shown in Build View are accurate (collected from the actual build), while Project View only reflects shaders with accessible source code.
Statistics Metrics
| Metric | Description |
|---|---|
| Total Shaders | Number of .shader files found in the project. |
| With Keywords | Number of shaders that use at least one keyword. |
| Used Keywords | Total enabled keywords counting toward the Unity limit. If keywords have been disabled, it shows "X of Y" (e.g., "2 of 3"). |
| Actual Variants | Total shader variants (different compilations) generated from keyword permutations. |
Clean All Materials
The Clean All Materials button removes disabled keywords from all materials in the project. When you disable a keyword in Shader Control, two things happen:
- The shader source is modified to comment out the keyword (no variants generated).
- The keyword is removed from materials that reference it.
The Clean All Materials button repeats step 2 for every material in the project. This is useful if keywords were re-enabled by scripts or asset imports. The operation is safe and non-destructive.
Prune Keyword (for shaders without source)
For shaders whose source code is not available (e.g., Unity's Standard shader), Shader Control still lists the materials that use them. The Prune Keyword option disables keyword references in those materials without modifying the shader itself. This helps reduce the project's keyword count.
Suggest an improvement
Help us improve this documentation page.