Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


ShaderHasError(Shader)

Checks if a shader has any compilation errors. Ignores warnings.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor
public static bool ShaderHasError(Shader shader)

Parameters

shader

The shader to check for compilation errors.

Returns

Type

Description

boolReturns true if the shader has any compilation errors. Otherwise, returns false.