ドキュメント

Unity Engine

Unity Engine

ShaderKeywordSet

A collection of ShaderKeyword that represents a specific shader variant.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

public struct ShaderKeywordSet

Remarks

Additional Resources: ShaderKeyword, ShaderKeywordSetUtility, Shader.EnableKeyword, Shader.EnableKeyword, Shader variants and keywords, Declaring and using shader keywords in HLSL.

Methods

Method

Description

DisableDisable a specific shader keyword.
EnableEnable a specific shader keyword.
GetShaderKeywordsReturn an array with all the enabled keywords in the ShaderKeywordSet.
IsEnabledCheck whether a specific shader keyword is enabled.