public void OnGUI() { // 过滤信息 FilterInfos(); GUILayout.BeginHorizontal(); { GUILayout.Label("搜索关键字 : ", DebugConsole.GUILableStyle, GUILayout.Width(140)); _filterKey = GUILayout.TextField(_filterKey, DebugConsole.GUITextFieldStyle, GUILayout.Width(400)); } GUILayout.EndHorizontal(); DebugConsole.GUILable($"加载器总数:{_loaderTotalCount}"); _scrollPos = DebugConsole.GUIBeginScrollView(_scrollPos, 80); for (int i = 0; i < _cacheInfos.Count; i++) { var element = _cacheInfos[i]; if (element.LoadState == EAssetFileLoadState.LoadAssetFileFailed) { DebugConsole.GUIRedLable(element.Info); } else { DebugConsole.GUILable(element.Info); } } DebugConsole.GUIEndScrollView(); }
public void OnGUI() { var pools = ReferenceSystem.DebugAllPools; DebugConsole.GUILable($"池总数:{pools.Count}"); _scrollPos = DebugConsole.GUIBeginScrollView(_scrollPos, 30); foreach (var pair in pools) { DebugConsole.GUILable($"[{pair.Value.ClassType.FullName}] CacheCount = {pair.Value.Count} SpwanCount = {pair.Value.SpawnCount}"); } DebugConsole.GUIEndScrollView(); }
public void OnGUI() { var pools = PoolManager.Instance.DebugAllPools; DebugConsole.GUILable($"池总数:{pools.Count}"); _scrollPos = DebugConsole.GUIBeginScrollView(_scrollPos, 30); foreach (var pair in pools) { string content = $"[{pair.Value.ResName}] CacheCount = {pair.Value.Count} SpwanCount = {pair.Value.SpawnCount}"; if (pair.Value.LoadResult == MotionEngine.Res.EAssetResult.Failed) { DebugConsole.GUIRedLable(content); } else { DebugConsole.GUILable(content); } } DebugConsole.GUIEndScrollView(); }
public void OnGUI() { GUILayout.BeginHorizontal(); _showLog = DebugConsole.GUIToggle("Log", _showLog); _showWarning = DebugConsole.GUIToggle("Warning", _showWarning); _showError = DebugConsole.GUIToggle("Error", _showError); GUILayout.EndHorizontal(); _scrollPos = DebugConsole.GUIBeginScrollView(_scrollPos, 40); for (int i = 0; i < _logs.Count; i++) { LogWrapper wrapper = _logs[i]; if (wrapper.Type == LogType.Log) { if (_showLog) { DebugConsole.GUILable(wrapper.Log); } } else if (wrapper.Type == LogType.Warning) { if (_showWarning) { DebugConsole.GUIYellowLable(wrapper.Log); } } else { if (_showError) { DebugConsole.GUIRedLable(wrapper.Log); } } } DebugConsole.GUIEndScrollView(); }
public void OnGUI() { _scrollPos = DebugConsole.GUIBeginScrollView(_scrollPos, 0); AppEngine.Instance.OnGUI(); DebugConsole.GUIEndScrollView(); }
public void OnGUI() { int space = 15; _scrollPos = DebugConsole.GUIBeginScrollView(_scrollPos, 0); GUILayout.Space(space); DebugConsole.GUILable($"Unity Version : {Application.unityVersion}"); DebugConsole.GUILable($"Unity Pro License : {Application.HasProLicense()}"); DebugConsole.GUILable($"Application Version : {Application.version}"); DebugConsole.GUILable($"Application Install Path : {Application.dataPath}"); DebugConsole.GUILable($"Application Persistent Path : {Application.persistentDataPath}"); GUILayout.Space(space); DebugConsole.GUILable($"OS : {SystemInfo.operatingSystem}"); DebugConsole.GUILable($"OS Memory : {SystemInfo.systemMemorySize / 1000}GB"); DebugConsole.GUILable($"CPU : {SystemInfo.processorType}"); DebugConsole.GUILable($"CPU Core : {SystemInfo.processorCount}"); GUILayout.Space(space); DebugConsole.GUILable($"Device Model : {SystemInfo.deviceModel}"); DebugConsole.GUILable($"Device Name : {SystemInfo.deviceName}"); DebugConsole.GUILable($"Device Type : {SystemInfo.deviceType}"); GUILayout.Space(space); DebugConsole.GUILable($"Graphics Device Name : {SystemInfo.graphicsDeviceName}"); DebugConsole.GUILable($"Graphics Device Type : {SystemInfo.graphicsDeviceType}"); DebugConsole.GUILable($"Graphics Memory : {SystemInfo.graphicsMemorySize / 1000}GB"); DebugConsole.GUILable($"Graphics Shader Level : {SystemInfo.graphicsShaderLevel}"); DebugConsole.GUILable($"Multi-threaded Rendering : {SystemInfo.graphicsMultiThreaded}"); DebugConsole.GUILable($"Max Cubemap Size : {SystemInfo.maxCubemapSize}"); DebugConsole.GUILable($"Max Texture Size : {SystemInfo.maxTextureSize}"); GUILayout.Space(space); DebugConsole.GUILable($"Supports Accelerometer : {SystemInfo.supportsAccelerometer}"); //加速计硬件 DebugConsole.GUILable($"Supports Gyroscope : {SystemInfo.supportsGyroscope}"); //陀螺仪硬件 DebugConsole.GUILable($"Supports Audio : {SystemInfo.supportsAudio}"); //音频硬件 DebugConsole.GUILable($"Supports GPS : {SystemInfo.supportsLocationService}"); //GPS硬件 GUILayout.Space(space); DebugConsole.GUILable($"Screen DPI : {Screen.dpi}"); DebugConsole.GUILable($"Game Resolution : {Screen.width} x {Screen.height}"); DebugConsole.GUILable($"Device Resolution : {Screen.currentResolution.width} x {Screen.currentResolution.height}"); DebugConsole.GUILable($"Graphics Quality : {QualitySettings.names[QualitySettings.GetQualityLevel()]}"); GUILayout.Space(space); long memory = Profiler.GetTotalReservedMemoryLong() / 1000000; DebugConsole.GUILable($"Total Memory : {memory}MB"); memory = Profiler.GetTotalAllocatedMemoryLong() / 1000000; DebugConsole.GUILable($"Used Memory : {memory}MB"); memory = Profiler.GetTotalUnusedReservedMemoryLong() / 1000000; DebugConsole.GUILable($"Free Memory : {memory}MB"); memory = Profiler.GetMonoHeapSizeLong() / 1000000; DebugConsole.GUILable($"Total Mono Memory : {memory}MB"); memory = Profiler.GetMonoUsedSizeLong() / 1000000; DebugConsole.GUILable($"Used Mono Memory : {memory}MB"); GUILayout.Space(space); DebugConsole.GUILable($"Battery Level : {SystemInfo.batteryLevel}"); DebugConsole.GUILable($"Battery Status : {SystemInfo.batteryStatus}"); DebugConsole.GUILable($"Network Status : {GetNetworkState()}"); DebugConsole.GUILable($"Elapse Time : {GetElapseTime()}"); DebugConsole.GUILable($"Time Scale : {Time.timeScale}"); DebugConsole.GUIEndScrollView(); }