Compare commits

...

3 Commits

Author SHA1 Message Date
hevinci e31799e78b Update CHANGELOG.md 2023-07-28 17:32:44 +08:00
hevinci a8405eea6d Update package.json 2023-07-28 17:32:38 +08:00
hevinci c11f072c50 update asset system 2023-07-28 17:17:23 +08:00
5 changed files with 42 additions and 30 deletions

View File

@ -2,6 +2,41 @@
All notable changes to this package will be documented in this file.
## [1.5.3-preview] - 2023-07-28
### Fixed
- 修复了Unity2020以下版本的编辑器提示找不到"autoLoadAssetBundle"的编译错误。
### Added
- 新增了支持开发者分发资源的功能。
```c#
public interface IQueryServices
{
/// <summary>
/// 查询应用程序里的内置资源是否存在
/// </summary>
bool QueryStreamingAssets(string packageName, string fileName);
/// <summary>
/// 查询是否为开发者分发的资源
/// </summary>
bool QueryDeliveryFiles(string packageName, string fileName);
/// <summary>
/// 获取开发者分发的资源信息
/// </summary>
DeliveryFileInfo GetDeliveryFileInfo(string packageName, string fileName);
}
```
### Changed
- 针对资源清单更新方法传入参数的合法性检测。
- 编辑器下针对激活的资源清单有效性的检测。
## [1.5.2-preview] - 2023-07-18
重新设计了对WebGL平台的支持新增加了专属模式WebPlayMode

View File

@ -128,11 +128,13 @@ namespace YooAsset
#else
foreach (var provider in _providerList)
{
provider.DestroySafely();
provider.WaitForAsyncComplete();
provider.Destroy();
}
foreach (var loader in _loaderList)
{
loader.DestroySafely();
loader.WaitForAsyncComplete();
loader.Destroy();
}
_providerList.Clear();
@ -416,7 +418,7 @@ namespace YooAsset
return null;
}
#region 调试信息
#region 调试信息
internal List<DebugProviderInfo> GetDebugReportInfos()
{
List<DebugProviderInfo> result = new List<DebugProviderInfo>(_providerList.Count);
@ -444,6 +446,6 @@ namespace YooAsset
}
return result;
}
#endregion
#endregion
}
}

View File

@ -144,15 +144,6 @@ namespace YooAsset
}
}
/// <summary>
/// 销毁资源包(安全模式)
/// </summary>
public void DestroySafely()
{
WaitForAsyncComplete();
Destroy();
}
/// <summary>
/// 轮询更新

View File

@ -140,22 +140,6 @@ namespace YooAsset
}
}
/// <summary>
/// 销毁资源对象(安全模式)
/// </summary>
public void DestroySafely()
{
if (Status == EStatus.Loading || Status == EStatus.Checking)
{
WaitForAsyncComplete();
Destroy();
}
else
{
Destroy();
}
}
/// <summary>
/// 是否可以销毁
/// </summary>

View File

@ -1,7 +1,7 @@
{
"name": "com.tuyoogame.yooasset",
"displayName": "YooAsset",
"version": "1.5.2-preview",
"version": "1.5.3-preview",
"unity": "2019.4",
"description": "unity3d resources management system.",
"author": {