parent
6df57cd3cd
commit
d697ebe521
|
@ -346,6 +346,15 @@ namespace YooAsset
|
||||||
report.ProviderInfos.Sort();
|
report.ProviderInfos.Sort();
|
||||||
return report;
|
return report;
|
||||||
}
|
}
|
||||||
|
internal static List<BundleInfo> GetLoadedBundleInfos()
|
||||||
|
{
|
||||||
|
List<BundleInfo> result = new List<BundleInfo>(100);
|
||||||
|
foreach (var bundleLoader in _loaders)
|
||||||
|
{
|
||||||
|
result.Add(bundleLoader.MainBundleInfo);
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -294,6 +294,7 @@ namespace YooAsset
|
||||||
public static UpdateManifestOperation UpdateManifestAsync(int resourceVersion, int timeout = 60)
|
public static UpdateManifestOperation UpdateManifestAsync(int resourceVersion, int timeout = 60)
|
||||||
{
|
{
|
||||||
DebugCheckInitialize();
|
DebugCheckInitialize();
|
||||||
|
DebugCheckUpdateManifest();
|
||||||
if (_playMode == EPlayMode.EditorSimulateMode)
|
if (_playMode == EPlayMode.EditorSimulateMode)
|
||||||
{
|
{
|
||||||
var operation = new EditorPlayModeUpdateManifestOperation();
|
var operation = new EditorPlayModeUpdateManifestOperation();
|
||||||
|
@ -1130,6 +1131,16 @@ namespace YooAsset
|
||||||
YooLogger.Warning($"Found illegal character in location : \"{location}\"");
|
YooLogger.Warning($"Found illegal character in location : \"{location}\"");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[Conditional("DEBUG")]
|
||||||
|
private static void DebugCheckUpdateManifest()
|
||||||
|
{
|
||||||
|
var loadedBundleInfos = AssetSystem.GetLoadedBundleInfos();
|
||||||
|
if(loadedBundleInfos.Count > 0)
|
||||||
|
{
|
||||||
|
YooLogger.Warning($"Found loaded bundle before update manifest ! Recommended to call the {nameof(ForceUnloadAllAssets)} method to release loaded bundle !");
|
||||||
|
}
|
||||||
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region 私有方法
|
#region 私有方法
|
||||||
|
|
Loading…
Reference in New Issue