From 0f83cf8d6016901c98a8adbbb02c7556ea9e4fcf Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期一, 27 十月 2025 16:11:59 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.1.20:10010/r/Project_SG_scripts
---
Main/ResModule/AssetBundle/AssetBundleUtility.cs | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/Main/ResModule/AssetBundle/AssetBundleUtility.cs b/Main/ResModule/AssetBundle/AssetBundleUtility.cs
index e5f8d37..8f8fae0 100644
--- a/Main/ResModule/AssetBundle/AssetBundleUtility.cs
+++ b/Main/ResModule/AssetBundle/AssetBundleUtility.cs
@@ -99,6 +99,7 @@
public async UniTask Initialize()
{
+ await UniTask.Delay(200);
await Co_LoadMainfestFile("audio");
// await Co_LoadMainfestFile("video");
await Co_LoadMainfestFile("mobeffectshader");
@@ -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