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

ShaderVariantCollection.Add

Declaration

public bool Add(ShaderVariantCollection.ShaderVariant variant);

Parameters

variant Shader variant to add.

Returns

bool False if already in the collection.

Description

Adds a new shader variant to the collection.

Additional resources: Remove, Contains.