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.Add

Switch to Manual
public function Add(variant: ShaderVariantCollection.ShaderVariant): bool;

Parameters

variant Shader variant to add.

Returns

bool False if already in the collection.

Description

Adds a new shader variant to the collection.

See Also: Remove, Contains.