GetGlobalKeywordName(ShaderKeyword)
Gets the string name of the global keyword.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Method
- Namespace: UnityEngine.Rendering
- Assembly: UnityEngine.CoreModule
public static string GetGlobalKeywordName(ShaderKeyword index)
Parameters
Returns
Type | Description |
|---|---|
| string |
Remarks
Unity now provides the ShaderKeyword.name API which works with all shader keyword types. It is best practice to use this API instead.