# GetGlobalKeywordName(ShaderKeyword)

> Gets the string name of the global keyword.

## Definition

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

> **Warning:**
>
> **Removed.** GetGlobalKeywordName is deprecated. Use the ShaderKeyword.name property instead.

```csharp
public static string GetGlobalKeywordName(ShaderKeyword index)
```

### Parameters

**** (\[ShaderKeyword]\(/engine/6000.5/script-reference/unityengine/rendering/shaderkeyword)):&#x20;

### Returns

| Type                                                           | Description |
| -------------------------------------------------------------- | ----------- |
| [string](https://learn.microsoft.com/dotnet/api/system.string) |             |

### Remarks

Unity now provides the [ShaderKeyword.name](/engine/6000.5/script-reference/unityengine/rendering/shaderkeyword/name.md) API which works with all shader keyword types. It is best practice to use this API instead.
