|
|
@@ -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);
|
|
|
|