From 3792663860dae4b2d4f2736f9ed3a9ab79d6f3b6 Mon Sep 17 00:00:00 2001
From: lcy <1459594991@qq.com>
Date: 星期四, 06 十一月 2025 17:12:01 +0800
Subject: [PATCH] 164 获取途径不显示功能未开启的条目

---
 Main/ResModule/AssetBundle/AssetBundleUtility.cs |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/Main/ResModule/AssetBundle/AssetBundleUtility.cs b/Main/ResModule/AssetBundle/AssetBundleUtility.cs
index 067f872..8f8fae0 100644
--- a/Main/ResModule/AssetBundle/AssetBundleUtility.cs
+++ b/Main/ResModule/AssetBundle/AssetBundleUtility.cs
@@ -99,11 +99,12 @@
 
     public async UniTask Initialize()
     {
+        await UniTask.Delay(200);
         await Co_LoadMainfestFile("audio");
         // await Co_LoadMainfestFile("video");
         await Co_LoadMainfestFile("mobeffectshader");
-        // await Co_LoadMainfestFile("config");
-        // await Co_LoadMainfestFile("maps");
+        await Co_LoadMainfestFile("config");
+        await Co_LoadMainfestFile("maps");
         await Co_LoadMainfestFile("ui");
 
         await Co_LoadAssetBundle(ResourcesPath.windowFileBundleName);
@@ -369,7 +370,11 @@
 
     public UnityEngine.Object Sync_LoadAsset(string assetBundleName, string assetName, Type _type = null)
     {
-
+        if (string.IsNullOrEmpty(assetName))
+        {
+            Debug.LogErrorFormat("Sync_LoadAsset(): {0}, 鍑虹幇閿欒 => 瀛樺叆鐨凙ssetName涓簄ull. ", assetName);
+            return null;
+        }
 #if UNITY_5||UNITY_5_3_OR_NEWER
         assetBundleName = assetBundleName.ToLower();
 #endif

--
Gitblit v1.8.0