parent
cb4ebb6306
commit
989d88f7d3
|
@ -122,6 +122,7 @@ namespace YooAsset
|
||||||
}
|
}
|
||||||
|
|
||||||
// 监听初始化结果
|
// 监听初始化结果
|
||||||
|
_isInitialize = true;
|
||||||
initializeOperation.Completed += InitializeOperation_Completed;
|
initializeOperation.Completed += InitializeOperation_Completed;
|
||||||
return initializeOperation;
|
return initializeOperation;
|
||||||
}
|
}
|
||||||
|
@ -298,23 +299,19 @@ namespace YooAsset
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public void UnloadUnusedAssets()
|
public void UnloadUnusedAssets()
|
||||||
{
|
{
|
||||||
if (_isInitialize)
|
DebugCheckInitialize();
|
||||||
{
|
|
||||||
_assetSystemImpl.Update();
|
_assetSystemImpl.Update();
|
||||||
_assetSystemImpl.UnloadUnusedAssets();
|
_assetSystemImpl.UnloadUnusedAssets();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 强制回收所有资源
|
/// 强制回收所有资源
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public void ForceUnloadAllAssets()
|
public void ForceUnloadAllAssets()
|
||||||
{
|
{
|
||||||
if (_isInitialize)
|
DebugCheckInitialize();
|
||||||
{
|
|
||||||
_assetSystemImpl.ForceUnloadAllAssets();
|
_assetSystemImpl.ForceUnloadAllAssets();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
#region 资源信息
|
#region 资源信息
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue