根据下面的数据字段,要么删除要么包含指定的着色器关键字。
Unity 在所有 multi_compile 关键字集中执行以下操作
RemoveOrSelect 下面的数据字段与 condition 的值匹配,则删除 keywordNames。RemoveOrSelect 下面的数据字段与 condition 的值不匹配,则仅包含 keywordNames。using UnityEditor.ShaderKeywordFilter;
[RemoveOrSelect(false, keywordNames: "FeatureA")] bool hasFeatureA;
其他资源:FilterAttribute。
| RemoveOrSelectAttribute | 根据下面的数据字段,要么删除要么包含指定的着色器关键字。 |