| 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. |
| globalKeywords | GlobalKeyword array of global keywords used in the variant. |
bool True if successfully removed, false otherwise.
Remove ShaderVariant and associated graphics states from collection.
If only the material is provided, then this function will only remove a shader variant matching exactly the set of Material.enabledKeywords combined with the global shader keywords that are currently enabled in the active context, unless they are explicitly provided via globalKeywords.
Additional resources: RemoveGraphicsStatesForVariant, ContainsVariant.