From 425198ab9652f51619112497f78ce4c03fa5f596 Mon Sep 17 00:00:00 2001 From: ninemine <1371605831@qq.com> Date: Wed, 17 Dec 2025 16:28:34 +0800 Subject: [PATCH] =?UTF-8?q?MD5=E7=BC=93=E5=AD=98=E5=B7=B2=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Scripts/Framework/GameContent/GameController.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Assets/Scripts/Framework/GameContent/GameController.cs b/Assets/Scripts/Framework/GameContent/GameController.cs index 9f75eed..8fc16f0 100644 --- a/Assets/Scripts/Framework/GameContent/GameController.cs +++ b/Assets/Scripts/Framework/GameContent/GameController.cs @@ -251,6 +251,14 @@ namespace Demo.Game } NDFS(rootGameObject); yield return new WaitUntil(() => applyDownCount == 0); + var rootObjectDir = rootObject.GetParentDir(); + ToolFile projectHashFile = rootObjectDir | ".cache" | "projectHash.json"; + Dictionary projectHash = new(); + foreach (var path in rootGameObject.LoadedScriptSet) + { + projectHash.Add(path, new ToolFile(path).CalculateHash()); + } + projectHashFile.SaveAsJson(projectHash); float loadRootObjectEndTime = Time.realtimeSinceStartup; float loadRootObjectElapsed = (loadRootObjectEndTime - loadRootObjectStartTime) * 1000f; Debug.Log($"[GameInit] Load Root Object 耗时: {loadRootObjectElapsed:F2} ms", this);