ShaderUtil.GetShaderMessageCount

Switch to Manual
public static int GetShaderMessageCount (Shader s);

Parameters

sThe Shader instance to check for messages.

Returns

int The number of errors and warnings generated by the Unity Shader Compiler.

Description

Returns the number of errors and warnings generated by the Unity Shader Compiler for the given Shader.