Version: 2021.2
public string[] shaderKeywords ;

説明

The names of the enabled local shader keywords in the material.

This property enables you to either get the names of all the currently enabled local shader keywords or set the enabled local shader keywords using keyword names for this material. It is more efficient to use the enabledKeywords. Enabled local and global shader keywords define variants of the shader to use for rendering. To enable and disable shader keywords, use EnableKeyword and DisableKeyword respectively. See Also: multiple shader variants.