private void ForceReloadLogList() { for (int i = DebugCmdContent.transform.childCount - 1; i >= 0; i--) { Destroy(DebugCmdContent.transform.GetChild(i).gameObject); } currentLogY = 0; currentLogX = 0; DebugCmdContent.sizeDelta = new Vector2(100, 30); List <GameLogger.LogData> datas = GameLogger.GetLogData(); foreach (GameLogger.LogData data in datas) { if (showLogTypes[(int)data.Type]) { AddLogItem(data); } } UpdateLogCount(); }