//协议收发状态 private void UF_DrawTagProtocal() { if (Debugger.UF_GetInstance().MsgTrackers.ContainsKey(Debugger.TRACK_NET_PROTO)) { MsgTracker tracker = Debugger.UF_GetInstance().MsgTrackers [Debugger.TRACK_NET_PROTO]; GUILayout.Box(tracker.UF_ForeachToString(UF_TrackMsgForeach)); } }
public void UF_DrawInfo(Rect rect) { if (m_CurrentTag == TAG_INFO) { GUILayout.Label(m_LogInfo, GUILayout.Width(rect.width)); } else if (m_CurrentTag == TAG_EVNET) { if (Debugger.UF_GetInstance().MsgTrackers.ContainsKey(Debugger.TRACK_LUA_EVENT)) { MsgTracker tracker = Debugger.UF_GetInstance().MsgTrackers [Debugger.TRACK_LUA_EVENT]; GUILayout.Label(tracker.UF_ForeachToString(UF_TrackMsgForeach)); } } }
public void UF_DrawInfo(Rect rect) { if (m_CurrentTag == TAG_INFO_ENTITY) { GUILayout.BeginHorizontal(); var sb = StrBuilderCache.Acquire(); sb.AppendLine(string.Format("== Active Count: {0} ==", CEntitySystem.UF_GetInstance().ActiveCount)); sb.AppendLine(); sb.AppendLine(CEntitySystem.UF_GetInstance().UF_GetActiveEntityInfo()); GUI.color = Color.green; GUILayout.Box(sb.ToString()); sb.Clear(); sb.AppendLine(string.Format("== Pool Count: {0} ==", CEntitySystem.UF_GetInstance().PoolCount)); sb.AppendLine(); sb.AppendLine(CEntitySystem.UF_GetInstance().UF_GetPoolEntityInfo()); GUI.color = Color.white; GUILayout.Box(sb.ToString()); StrBuilderCache.Release(sb); GUILayout.EndHorizontal(); } else if (m_CurrentTag == TAG_INFO_AB) { GUILayout.Label("Total Count: " + AssetSystem.UF_GetInstance().count); GUILayout.Box(AssetSystem.UF_GetInstance().ToString()); } else if (m_CurrentTag == TAG_LOAD_TRACK) { if (Debugger.UF_GetInstance().MsgTrackers.ContainsKey(Debugger.TRACK_RES_LOAD)) { MsgTracker tracker = Debugger.UF_GetInstance().MsgTrackers[Debugger.TRACK_RES_LOAD]; GUILayout.Box(tracker.UF_ForeachToString(UF_TrackMsgForeach)); } } else if (m_CurrentTag == TAG_UI) { var lastAlignment = GUI.skin.box.alignment; GUI.skin.box.alignment = TextAnchor.MiddleLeft; GUILayout.Box(UIManager.UF_GetInstance().ToString()); GUI.skin.box.alignment = lastAlignment; } else if (m_CurrentTag == TAG_RefObject) { GUILayout.Box(RefObjectManager.UF_GetInstance().ToString()); } else if (m_CurrentTag == TAG_AUDIO) { GUILayout.Box(AudioManager.UF_GetInstance().ToString()); } else if (m_CurrentTag == TAG_SHADER) { GUILayout.Box(ShaderManager.UF_GetInstance().UF_GetShadersInfo()); } else if (m_CurrentTag == TAG_ASSETDB) { int countBundle = AssetDataBases.UF_GetAssetInfoCount(AssetDataBases.AssetFileType.Bundle); int countRebundle = AssetDataBases.UF_GetAssetInfoCount(AssetDataBases.AssetFileType.Rebundle); int countRuntimes = AssetDataBases.UF_GetAssetInfoCount(AssetDataBases.AssetFileType.Runtimes); int countNone = AssetDataBases.UF_GetAssetInfoCount(AssetDataBases.AssetFileType.None); GUILayout.Box(string.Format("Bundle-> {0}", countBundle)); GUILayout.Box(string.Format("Runtime-> {0}", countRuntimes)); GUILayout.Box(string.Format("Rebundle-> {0}", countRebundle)); GUILayout.Box(string.Format("None-> {0}", countNone)); } }