Legacy Documentation: Version 2018.2 (Go to current version)
LanguageEnglish
  • C#

Shader.EnableKeyword

Switch to Manual
public static void EnableKeyword(string keyword);

Description

Set a global shader keyword.

Shaders can be internally compiled into multiple variants, and then the matching one is picked based on material keywords (Material.EnableKeyword and Material.DisableKeyword), or globally set shader keywords (EnableKeyword and DisableKeyword).

See Also: DisableKeyword, multiple shader program variants.

对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答