Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


RemoveVariant(Shader, PassIdentifier, LocalKeyword[])

Remove shader variant and associated graphics states from collection.
Read time 1 minuteLast updated 9 days ago

Definition

public bool RemoveVariant(Shader shader, PassIdentifier passId, LocalKeyword[] keywords)

Parameters

shader

Shader used in the variant.

PassIdentifier used in the variant.

Array of keywords used in the variant.

Returns

Type

Description

boolReturns true if successfully removed, false otherwise.