Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SummarizeErrors()

Returns a string summarizing any errors that occurred during the build
Read time 1 minuteLast updated 9 days ago

Definition

public string SummarizeErrors()

Returns

Type

Description

string

Remarks

Convenience method for summarizing errors (or exceptions) that occurred during a build into a single line of text. If no error was logged this returns an empty string. If a single error was logged this reports the error messages. Otherwise it reports the number of errors, for example "5 errors".
Note: To examine all errors, warnings and other messages recorded during a build you can enumerating through the build _steps and check _messages. And to retrieve the count of errors call _totalErrors.