diff --git a/Unity/Assets/Model/Module/Resource/ResourcesComponent.cs b/Unity/Assets/Model/Module/Resource/ResourcesComponent.cs index d8f626b5f5c49da837d1ff325d9e12054d83ab09..163e06aa588bcdbf2b83eb2a59082db3fdcb2e01 100644 --- a/Unity/Assets/Model/Module/Resource/ResourcesComponent.cs +++ b/Unity/Assets/Model/Module/Resource/ResourcesComponent.cs @@ -385,8 +385,9 @@ namespace ET if (!Define.IsAsync) { - string[] realPath = null; + #if UNITY_EDITOR + string[] realPath = null; realPath = AssetDatabase.GetAssetPathsFromAssetBundle(assetBundleName); foreach (string s in realPath) { @@ -542,11 +543,13 @@ namespace ET p = Path.Combine(PathHelper.AppResPath, assetBundleName); } - if (!File.Exists(p)) - { - Log.Error("Async load bundle not exist! BundleName : " + p); - return null; - } + Log.Info("Async load bundle BundleName : " + p); + + // if (!File.Exists(p)) + // { + // Log.Error("Async load bundle not exist! BundleName : " + p); + // return null; + // } assetBundle = await AssetBundleHelper.UnityLoadBundleAsync(p);