Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


ShaderHasWarnings(Shader)

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

Definition

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

Parameters

shader

The shader to check for compilation warnings.

Returns

Type

Description

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