UnityScripterAI
Discord ↗
Link Copied to Clipboard
×
"if there is a crash i want a report"
using UnityEngine; // This example shows a list of crash reports (if available), // and allows you to output crash data to console, or // delete them. public class Crashes : MonoBehaviour { void OnGUI() { var reports = CrashReport.reports; GUILayout.Label("Crash reports:"); foreach (var r in reports) { GUILayout.BeginHorizontal(); GUILayout.Label("Crash: " r.time); if (GUILayout.Button("Log")) { Debug.Log(r.text); } if (GUILayout.Button("Remove")) { r.Remove(); } GUILayout.EndHorizontal(); } } }