update logic code

优化了创建文件的方式。
This commit is contained in:
hevinci
2023-06-09 18:12:03 +08:00
parent f6e94c9514
commit 895dde1cc8
8 changed files with 15 additions and 37 deletions

View File

@@ -278,7 +278,7 @@ namespace YooAsset.Editor
string filePath = $"{resultPath}/{nameof(DebugReport)}_{_currentReport.FrameCount}.json";
string fileContent = JsonUtility.ToJson(_currentReport, true);
FileUtility.CreateFile(filePath, fileContent);
FileUtility.WriteAllText(filePath, fileContent);
}
}
private void OnSearchKeyWordChange(ChangeEvent<string> e)