# variantGenerationMode

> The variant generation mode override.

## Definition

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

```csharp
public ShaderBuildSettings.ShaderVariantGenerationMode variantGenerationMode
```

### Remarks

This effectively determines the keyword type of the specified keyword declaration. It can either keep the original type declared in each individual shader or force the type to `multi_compile`, `shader_feature` or `dynamic_branch`.
