Method group is Obsolete

ShaderKeyword.GetKeywordName

Obsolete GetKeywordName is deprecated. Use the ShaderKeyword.name property instead.

Declaration

public static string GetKeywordName(Shader shader, Rendering.ShaderKeyword index);
Obsolete GetKeywordName is deprecated. Use the ShaderKeyword.name property instead.

Declaration

public static string GetKeywordName(ComputeShader shader, Rendering.ShaderKeyword index);
Obsolete GetKeywordName is deprecated. Use ShaderKeyword.name instead.

Declaration

public string GetKeywordName();

Description

Gets the string name of the keyword.

Unity now provides the ShaderKeyword.name API which works with all shader keyword types. It is best practice to use this API instead.


Did you find this page useful? Please give it a rating: