IEnumerator generateBugReport(BugReportUserData data) { var grabScreenshot = StartCoroutine(screenGrabAndCache()); yield return(grabScreenshot); Debug.Log("Submitting bug report."); string version = Application.version; // This gets the version number from Project Settings->Player under Other Settings. var report = BugReport.CreateInstance <BugReport>(); report.SetData( data, "", UnityEngine.SceneManagement.SceneManager.GetActiveScene().name, version, Application.platform); report.AddScreenshot("screenshot" + System.DateTime.UtcNow.ToShortTimeString(), cachedScreenshot); report.AddTextAttachment("SystemInfo", SystemInformation.GetDebugSystemInfo(), "txt"); report.AddTextAttachment("SessionInfo", sessionLog.PrintLog(), "txt"); Send(report); }
public void HandleBugReport(BugReport report, Action OnDone) { StartCoroutine(handleBugReport(report, OnDone, BugReportListID)); }
public void Send(BugReport report) { client.HandleBugReport(report, OnBugReportSent); }