Compare commits
2 Commits
92e385bd73
...
db81ba8d67
Author | SHA1 | Date |
---|---|---|
Nocye | db81ba8d67 | |
hevinci | dc5086a644 |
|
@ -79,30 +79,6 @@ namespace YooAsset
|
||||||
_isUnloadSafe = true;
|
_isUnloadSafe = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 销毁
|
|
||||||
/// </summary>
|
|
||||||
public void DestroyAll()
|
|
||||||
{
|
|
||||||
foreach (var provider in _providerList)
|
|
||||||
{
|
|
||||||
provider.Destroy();
|
|
||||||
}
|
|
||||||
_providerList.Clear();
|
|
||||||
_providerDic.Clear();
|
|
||||||
|
|
||||||
foreach (var loader in _loaderList)
|
|
||||||
{
|
|
||||||
loader.Destroy(true);
|
|
||||||
}
|
|
||||||
_loaderList.Clear();
|
|
||||||
_loaderDic.Clear();
|
|
||||||
|
|
||||||
ClearSceneHandle();
|
|
||||||
DecryptionServices = null;
|
|
||||||
BundleServices = null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 资源回收(卸载引用计数为零的资源)
|
/// 资源回收(卸载引用计数为零的资源)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -149,10 +125,12 @@ namespace YooAsset
|
||||||
{
|
{
|
||||||
foreach (var provider in _providerList)
|
foreach (var provider in _providerList)
|
||||||
{
|
{
|
||||||
|
provider.WaitForAsyncComplete();
|
||||||
provider.Destroy();
|
provider.Destroy();
|
||||||
}
|
}
|
||||||
foreach (var loader in _loaderList)
|
foreach (var loader in _loaderList)
|
||||||
{
|
{
|
||||||
|
loader.WaitForAsyncComplete();
|
||||||
loader.Destroy(true);
|
loader.Destroy(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -62,7 +62,7 @@ namespace YooAsset
|
||||||
|
|
||||||
if (_assetSystemImpl != null)
|
if (_assetSystemImpl != null)
|
||||||
{
|
{
|
||||||
_assetSystemImpl.DestroyAll();
|
_assetSystemImpl.ForceUnloadAllAssets();
|
||||||
_assetSystemImpl = null;
|
_assetSystemImpl = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "com.tuyoogame.yooasset",
|
"name": "com.tuyoogame.yooasset",
|
||||||
"displayName": "YooAsset",
|
"displayName": "YooAsset",
|
||||||
"version": "1.4.16004",
|
"version": "1.4.16005",
|
||||||
"unity": "2019.4",
|
"unity": "2019.4",
|
||||||
"description": "unity3d resources management system.",
|
"description": "unity3d resources management system.",
|
||||||
"author": {
|
"author": {
|
||||||
|
|
Loading…
Reference in New Issue