# MaterialUsageBasedVariants

> Generates variants only for the keyword combinations used by the materials in the build.

## Definition

* **Type:** Field
* **Namespace:** [UnityEditor.Shaders](/engine/6000.7/script-reference/unityeditor/shaders.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
MaterialUsageBasedVariants = 1
```

### Remarks

This matches the behavior when you declare keywords as `shader_feature`.
