ShaderUtil.GetShaderMessageCount

Declaration

public static int GetShaderMessageCount(Shader s);

Parameters

s The 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.


Did you find this page useful? Please give it a rating: