文档

Unity Engine

Unity Engine

PlatformKeywordSet

A collection of ShaderKeyword that represents a specific platform variant.
阅读时间1 分钟最后更新于 1 个月前

Definition

public struct PlatformKeywordSet

Remarks

Additional Resources: ShaderKeyword, ShaderKeywordSetUtility, Shader.EnableKeyword, Shader.EnableKeyword, Shader variants and keywords, [[[]wiki:SL-MultipleProgramVariants|Declaring and using shader keywords in HLSL]].

Methods

Method

Description

DisableDisable a specific shader keyword.
EnableEnable a specific shader keyword.
IsEnabledCheck whether a specific shader keyword is enabled.