Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


RemoveGraphicsStatesForVariant

Remove all associated graphics states from an input shader variant.
Read time 1 minuteLast updated 4 days ago

Definition

RemoveGraphicsStatesForVariant(Shader, PassIdentifier, LocalKeyword[])

Remove all associated graphics states from an input shader variant.
public bool RemoveGraphicsStatesForVariant(Shader shader, PassIdentifier passId, LocalKeyword[] keywords)

Parameters

shader

Shader used in the variant.

PassIdentifier used in the variant.

LocalKeyword array of keywords used in the variant.

Returns

Type

Description

boolTrue if successfully removed, false otherwise.

Remarks

RemoveGraphicsStatesForVariant(ShaderVariant)

Remove all associated graphics states from an input shader variant.
public bool RemoveGraphicsStatesForVariant(GraphicsStateCollection.ShaderVariant variant)

Parameters

The input shader variant.

Returns

Type

Description

boolTrue if successfully removed, false otherwise.

Remarks