ShaderVariant(Shader, PassType, params string[])
Creates a ShaderVariant structure.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Constructor
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
ShaderVariant(Shader, PassType, string[])
public ShaderVariant(Shader shader, PassType passType, params string[] keywords)
Parameters
Remarks
Note that this will throw an ArgumentException if shader is null, pass type does not exist or variant with the passed keywords is not found.
Additional Resources: ShaderVariantCollection.Add.