Version: Unity 6 Preview (6000.0)
LanguageEnglish
  • C#

ShaderVariantCollection.ShaderVariant Constructor

Declaration

public ShaderVariantCollection.ShaderVariant(Shader shader, Rendering.PassType passType, params string[] keywords);

Description

Creates a ShaderVariant structure.

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.