脚本缓存机制已经被添加

This commit is contained in:
2025-12-03 14:37:12 +08:00
parent ffa2e415b0
commit c80d5140bc
5 changed files with 284 additions and 187 deletions

View File

@@ -220,7 +220,7 @@ namespace Demo.Game
rootGameObject.SetContent(nameof(SongOffset), SongOffset);
rootGameObject.SetContent(nameof(IsAutoPlay), IsAutoPlay ? 1 : 0);
rootGameObject.SetContent("SongLength", MainAudio.CurrentClip.length);
yield return rootGameObject.ParseScript2Expr(rootObject.LoadAsText());
yield return rootGameObject.ParseFromScriptFile2Expr(rootObject);
static void NDFS(ScriptableObject current)
{
foreach (var child in current.Childs)