This version of Unity is unsupported.
Method group is Obsolete

ShaderKeyword.GetKeywordType

Obsolete GetKeywordType is deprecated. Only global keywords can have a type. This method always returns ShaderKeywordType.UserDefined.

Declaration

public static Rendering.ShaderKeywordType GetKeywordType(Shader shader, Rendering.ShaderKeyword index);
Obsolete GetKeywordType is deprecated. Only global keywords can have a type. This method always returns ShaderKeywordType.UserDefined.

Declaration

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

Declaration

public Rendering.ShaderKeywordType GetKeywordType();

Description

Gets the type of the keyword.

All local shader keywords are user-defined. To get the type of a global shader keyword, use ShaderKeyword.GetGlobalKeywordType.