EditorUtility.scriptCompilationFailed

Switch to Manual
public static bool scriptCompilationFailed ;

Description

True if there are any compilation error messages in the log.