mirror of
https://github.com/tuyoogame/YooAsset.git
synced 2026-05-24 09:40:11 +00:00
Update runtime code
修复资源回收无效的问题。
This commit is contained in:
@@ -122,6 +122,7 @@ namespace YooAsset
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 监听初始化结果
|
// 监听初始化结果
|
||||||
|
_isInitialize = true;
|
||||||
initializeOperation.Completed += InitializeOperation_Completed;
|
initializeOperation.Completed += InitializeOperation_Completed;
|
||||||
return initializeOperation;
|
return initializeOperation;
|
||||||
}
|
}
|
||||||
@@ -298,11 +299,9 @@ namespace YooAsset
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public void UnloadUnusedAssets()
|
public void UnloadUnusedAssets()
|
||||||
{
|
{
|
||||||
if (_isInitialize)
|
DebugCheckInitialize();
|
||||||
{
|
_assetSystemImpl.Update();
|
||||||
_assetSystemImpl.Update();
|
_assetSystemImpl.UnloadUnusedAssets();
|
||||||
_assetSystemImpl.UnloadUnusedAssets();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -310,10 +309,8 @@ namespace YooAsset
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public void ForceUnloadAllAssets()
|
public void ForceUnloadAllAssets()
|
||||||
{
|
{
|
||||||
if (_isInitialize)
|
DebugCheckInitialize();
|
||||||
{
|
_assetSystemImpl.ForceUnloadAllAssets();
|
||||||
_assetSystemImpl.ForceUnloadAllAssets();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -982,9 +979,12 @@ namespace YooAsset
|
|||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region 调试信息
|
#region 调试信息
|
||||||
internal List<DebugProviderInfo> GetDebugReportInfos()
|
internal DebugPackageData GetDebugPackageData()
|
||||||
{
|
{
|
||||||
return _assetSystemImpl.GetDebugReportInfos();
|
DebugPackageData data = new DebugPackageData();
|
||||||
|
data.PackageName = PackageName;
|
||||||
|
data.ProviderInfos = _assetSystemImpl.GetDebugReportInfos();
|
||||||
|
return data;
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user