ShaderKeywordConstructor

Switch to Manual
public ShaderKeyword (string keywordName);

Parameters

keywordNameThe 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

shaderThe shader that declares the keyword.
keywordNameThe name of the keyword.

Description

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