Legacy Documentation: Version 5.1
LanguageEnglish
  • C#
  • JS

Script language

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

ShaderVariantCollection.ShaderVariant.ShaderVariantCollection.ShaderVariant

Switch to Manual
public ShaderVariantCollection.ShaderVariant(shader: Shader, passType: Rendering.PassType, params keywords: string[])

Parameters

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.