Defines
An array of constant defines for the shaders in this settings configuration.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Property
- Namespace: UnityEditor.Shaders
- Assembly: UnityEditor.CoreModule
public string[] Defines { set; }
Remarks
Setting the value of this property will run validation on the data and throw an in the case of invalid data. You can only use this property for setting the data. To read the current data, use the ShaderBuildSettings.GetDefinesCopy method instead. A single array element should contain a string with a pair of identifier and numeric value, separated by a whitespace.
ArgumentException