Version: 2020.1
public void DisableKeyword (string keyword);

描述

Disables a locally set Shader keyword.

Unity internally compiles Shaders into multiple variants, and then picks the matching one based on locally set keywords (EnableKeyword and DisableKeyword), or globally set Shader keywords (Shader.EnableKeyword and Shader.DisableKeyword).

See Also: EnableKeyword, shaderKeywords, multiple shader program variants.