# EnableShaderKeyword(string)

> Adds a command to enable a global keyword with a given name.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.Rendering](/engine/6000.7/script-reference/unityengine/rendering.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public void EnableShaderKeyword(string keyword)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Name of a global shader keyword to enable.

### Remarks

If a global keyword with the name you pass in does not exist, Unity creates one with that name when you call this function. To get all the global keywords that already exist, use [Shader.globalKeywords](/engine/6000.7/script-reference/unityengine/shader/globalkeywords.md). Note: it is more efficient to use [CommandBuffer.EnableKeyword](/engine/6000.7/script-reference/unityengine/rendering/commandbuffer/enablekeyword.md).

Additional Resources: [CommandBuffer.DisableShaderKeyword](/engine/6000.7/script-reference/unityengine/rendering/commandbuffer/disableshaderkeyword.md), [Shader.EnableKeyword](/engine/6000.7/script-reference/unityengine/shader/enablekeyword.md).
