ShaderKeyword Constructor

public ShaderKeyword(string keywordName);

Parameters

keywordName The name of the keyword.

Description

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


public ShaderKeyword(Shader shader, string keywordName);

Parameters

shader The shader that declares the keyword.
keywordName The name of the keyword.

Description

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

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