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 |
|---|---|
| bool | False if already in the collection. |
Remarks
Additional Resources: ShaderVariantCollection.Remove, ShaderVariantCollection.Contains.