文档

Unity Engine

Unity Engine

RemoveGraphicsStatesForVariant(Shader, PassIdentifier, LocalKeyword[])

Remove all associated graphics states from a shader variant.
阅读时间1 分钟最后更新于 1 个月前

Definition

public bool RemoveGraphicsStatesForVariant(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.