| Parameter | Description |
|---|---|
| shader | Shader used in the variant. |
| passId | PassIdentifier used in the variant. |
| keywords | LocalKeyword array of keywords used in the variant. |
| material | Material with the shader and enabled keywords used in the variant. |
Boolean True if variant exists in collection, false otherwise.
Check if the specified ShaderVariant exists in the collection.
If only the material is provided, then this function will check for a shader variant using the set of Material.enabledKeywords combined with the global shader keywords that are currently enabled in the active context.
Additional resources: AddVariant, RemoveVariant.