This version of Unity is unsupported.

ShaderKeyword Constructor

public ShaderKeyword(string keywordName);

Description

Initializes a new instance of the ShaderKeyword class from a shader global keyword name.


public ShaderKeyword(Shader shader, string keywordName);

Description

Initializes a new instance of the ShaderKeyword class from a shader keyword name.