文档

Unity Engine

Unity Engine

IsValid

Checks whether the global shader keyword exists.
阅读时间1 分钟最后更新于 1 个月前

Definition

IsValid()

Checks whether the global shader keyword exists.
public bool IsValid()

Returns

Type

Description

boolReturns true if the global shader keyword exists. Otherwise, returns false.

IsValid(ComputeShader)

Checks whether the shader keyword exists in the compute shader you pass in.
public bool IsValid(ComputeShader shader)

Parameters

The shader that declares the keyword.

Returns

Type

Description

boolReturns true if the shader keyword exists. Otherwise, returns false.

IsValid(Shader)

Checks whether the shader keyword exists in the shader you pass in.
public bool IsValid(Shader shader)

Parameters

shader

The shader that declares the keyword.

Returns

Type

Description

boolReturns true if the shader keyword exists. Otherwise, returns false.