From 1ad03cc2f91d75e80fc3dc42e2ac1fadc9a2bfec Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期三, 11 二月 2026 16:10:43 +0800
Subject: [PATCH] Merge branch 'master' into h5version
---
Main/System/Debug/DebugUtility.cs | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/Main/System/Debug/DebugUtility.cs b/Main/System/Debug/DebugUtility.cs
index 01feb3f..33953f7 100644
--- a/Main/System/Debug/DebugUtility.cs
+++ b/Main/System/Debug/DebugUtility.cs
@@ -4,6 +4,7 @@
using LitJson;
using System.IO;
using UnityEngine.UI;
+using Cysharp.Threading.Tasks;
public class DebugUtility : Singleton<DebugUtility>
@@ -97,6 +98,17 @@
}
}
+ public async UniTask CreateDebugRootAsync()
+ {
+ if (debugRoot == null)
+ {
+ var prefab = await BuiltInLoader.LoadPrefabAsync("UIRootDebug");
+ debugRoot = GameObject.Instantiate(prefab);
+ MonoBehaviour.DontDestroyOnLoad(debugRoot);
+ debugRoot.name = "UIRootDebug";
+ }
+ }
+
public class DebugBranch
{
--
Gitblit v1.8.0