# ValidateKeywordDeclarationOverrides(KeywordDeclarationOverride[], out string)

> Validates the keyword declaration override data.

## Definition

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

## ValidateKeywordDeclarationOverrides(KeywordDeclarationOverride\[], string)

```csharp
public static bool ValidateKeywordDeclarationOverrides(ShaderBuildSettings.KeywordDeclarationOverride[] overrides, out string msg)
```

### Parameters

**** (\[KeywordDeclarationOverride\[]]\(/engine/6000.5/script-reference/unityeditor/shaders/shaderbuildsettings/keyworddeclarationoverride)): The keyword declaration override array to validate.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The error message if validation errors occur.

### Returns

| Type                                                          | Description                                             |
| ------------------------------------------------------------- | ------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the keyword declaration override data is valid. |

### Remarks

This method checks that the override array does not contain multiple entries with the same keyword set. It also runs data validation on each element individually.
