Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


IsValid

Checks whether the global shader keyword exists.
Read time 1 minuteLast updated 5 days ago

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.