Documentation

Unity Engine

Unity Engine

AddVariant(Shader, PassIdentifier, LocalKeyword[])

Adds a new shader variant to the collection.
Read time 1 minuteLast updated 2 months ago

Definition

public bool AddVariant(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 the variant was added, false otherwise.