示例#1
0
        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));
 }
示例#3
0
 public void Send(BugReport report)
 {
     client.HandleBugReport(report, OnBugReportSent);
 }