Documentation

Unity Engine

Download Unity

Unity Engine

HasShaderStage(ShaderType)

Checks whether this pass includes a shader stage.
Read time 1 minuteLast updated 2 months ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public bool HasShaderStage(ShaderType shaderType)

Parameters

shaderType

The shader stage to check.

Returns

Type

Description

boolReturns true if the shader stage is present in the pass. Otherwise, returns false.