ContainsVariant(Shader, PassIdentifier, LocalKeyword[])
Check if variant exists in collection.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Method
- Namespace: UnityEngine.Experimental.Rendering
- Assembly: UnityEngine.CoreModule
public bool ContainsVariant(Shader shader, PassIdentifier passId, LocalKeyword[] keywords)
Parameters
Shader used in the variant.
PassIdentifier used in the variant.
Array of keywords used in the variant.
Returns
Type | Description |
|---|---|
| bool | Returns true if variant exists in collection, false otherwise. |