Skip to main content

StaticBatchReport

A static class in Root.Township, the global namespace.

Collects a text log of warnings and errors during static batching and build baking, for reading back as one report.

Fields​

1 private and internal field
MemberWhat it is
private static StringBuilder sessionThe report text being built.

Methods​

MemberWhat it is
static void ClearSession()Starts a new empty report.
static void Error(Type context, string error)Adds an error line tagged with the context type's name.
static void Exception(Type context, Exception exception)Adds an exception line tagged with the context type's name.
static string GetSession()Returns the report text so far.
static void Log(Type context, string log)Adds a log line tagged with the context type's name.
static void Warning(Type context, string warning)Adds a warning line tagged with the context type's name.