using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Reflection; using System.Text; using UnityEngine; public class DebugDumper : MonoBehaviour { void Start() { var sb = new StringBuilder("SystemInfo:\n"); foreach (var property in typeof(SystemInfo).GetProperties(BindingFlags.Static | BindingFlags.Public)) { sb.AppendLine($"- {property.Name} = {property.GetValue(null)}"); } Debug.Log(sb); } void Update() { if (Input.GetKeyDown(KeyCode.F12)) { string path = Path.Combine(Directory.GetCurrentDirectory(), $"screenshot-{DateTime.Now:yyyyMMdd-HHmmss}.png"); ScreenCapture.CaptureScreenshot(path); Debug.Log($"Screenshot saved to: {path}"); } } }