Contains(ShaderVariant)
Checks if a shader variant is in the collection.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
public bool Contains(ShaderVariantCollection.ShaderVariant variant)
Parameters
Shader variant to check.
Returns
Type | Description |
|---|---|
| bool | True if the variant is in the collection. |
Remarks
Additional Resources: ShaderVariantCollection.Add, ShaderVariantCollection.Remove.