GetKeywordName
Gets the string name of the keyword.
읽는 시간 1분최근 업데이트: 한 달 전
Definition
- Type: Method
- Namespace: UnityEngine.Rendering
- Assembly: UnityEngine.CoreModule
GetKeywordName(Shader, ShaderKeyword)
Gets the string name of the keyword.
public static string GetKeywordName(Shader shader, 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.
GetKeywordName(ComputeShader, ShaderKeyword)
Gets the string name of the keyword.
public static string GetKeywordName(ComputeShader shader, 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.
GetKeywordName()
Gets the string name of the keyword.
public string GetKeywordName()
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.