文档

Unity Engine

Unity Engine

KeywordDeclarationOverrides

An array of all the keyword declaration overrides in this settings configuration.
阅读时间1 分钟最后更新于 1 个月前

Definition

public ShaderBuildSettings.KeywordDeclarationOverride[] KeywordDeclarationOverrides { set; }

Remarks

Setting the value of this property will run validation on the data and throw an
ArgumentException
in the case of invalid data. This property can only be used for setting the override data. To read the current data the ShaderBuildSettings.GetKeywordDeclarationOverridesCopy method must be used.