Legacy Documentation: Version 5.5
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

ShaderVariantCollection.ShaderVariant Constructor

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.

See Also: ShaderVariantCollection.Add.