6 namespace HKI.Core.Debuging
14 [SerializeField] Text ProcessText = null;
15 [SerializeField] Text PathText = null;
16 [SerializeField] Text OSText = null;
17 [SerializeField] Text ProcessorText = null;
18 [SerializeField] Text GpuText = null;
19 [SerializeField] Text APIText = null;
20 [SerializeField] Text DisplayText = null;
27 if(ProcessText != null)
28 ProcessText.text = Process.GetCurrentProcess().ProcessName;
31 PathText.text = Path.GetFullPath(Application.dataPath +
"/../").ToString();
34 OSText.text =
UnityEngine.SystemInfo.operatingSystem;
36 if(ProcessorText != null)
37 ProcessorText.text =
UnityEngine.SystemInfo.processorType +
" [" +
UnityEngine.SystemInfo.processorCount.ToString() +
" Threads] [" +
UnityEngine.SystemInfo.systemMemorySize.ToString() +
" MB]";
39 if(GpuText != null && APIText != null)
41 GpuText.text =
UnityEngine.SystemInfo.graphicsDeviceName +
" [" +
UnityEngine.SystemInfo.graphicsMemorySize.ToString() +
" MB]";
42 APIText.text =
"[API: " +
UnityEngine.SystemInfo.graphicsDeviceVersion +
"] [Multi-Threaded: " +
UnityEngine.SystemInfo.graphicsMultiThreaded.ToString() +
"]";
45 if(DisplayText != null)
47 oldResolution = Screen.currentResolution;
48 DisplayText.text = Screen.currentResolution.ToString() +
" [" + Screen.dpi +
" dpi] [" + (Screen.fullScreen ?
"Fullscreen]" :
"Windowed]");
55 Resolution currentResolution = Screen.currentResolution;
58 if (DisplayText != null && (oldResolution.width != currentResolution.width || oldResolution.height != currentResolution.height || oldResolution.refreshRate != currentResolution.refreshRate))
59 DisplayText.text = Screen.currentResolution.ToString() +
" [" + Screen.dpi +
" dpi] [" + (Screen.fullScreen ?
"Fullscreen]" :
"Windowed]");
This MonoBehaviour fetches and updates the UI of the DebugSystem/Console with the system information...