Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Add(ShaderVariant)

Adds a new shader variant to the collection.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public bool Add(ShaderVariantCollection.ShaderVariant variant)

Parameters

Shader variant to add.

Returns

Type

Description

boolFalse if already in the collection.

Remarks