static void Main() { try { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new MainForm()); } catch (Exception ex) { if (!CrashReportHandler.CreateCrashReport(ex)) { throw ex; } } }
private static void InjectMetadata() { #if UNITY_EDITOR if (Application.isEditor) { return; } #endif BuildMetadata instance = GetInstance(); if (instance == null) { return; } CrashReportHandler.SetUserMetadata(nameof(BuildName), instance.BuildName); CrashReportHandler.SetUserMetadata(nameof(FullVersion), instance.FullVersion); }