Version: 2018.3 (switch to 2019.1)
LanguageEnglish
  • C#

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.

Did you find this page useful? Please give it a rating: