mirror of https://github.com/tuyoogame/YooAsset
Compare commits
3 Commits
b22bbd4e27
...
e31799e78b
Author | SHA1 | Date |
---|---|---|
|
e31799e78b | |
|
a8405eea6d | |
|
c11f072c50 |
|
@ -2,6 +2,41 @@
|
||||||
|
|
||||||
All notable changes to this package will be documented in this file.
|
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
|
## [1.5.2-preview] - 2023-07-18
|
||||||
|
|
||||||
重新设计了对WebGL平台的支持,新增加了专属模式:WebPlayMode
|
重新设计了对WebGL平台的支持,新增加了专属模式:WebPlayMode
|
||||||
|
|
|
@ -128,11 +128,13 @@ namespace YooAsset
|
||||||
#else
|
#else
|
||||||
foreach (var provider in _providerList)
|
foreach (var provider in _providerList)
|
||||||
{
|
{
|
||||||
provider.DestroySafely();
|
provider.WaitForAsyncComplete();
|
||||||
|
provider.Destroy();
|
||||||
}
|
}
|
||||||
foreach (var loader in _loaderList)
|
foreach (var loader in _loaderList)
|
||||||
{
|
{
|
||||||
loader.DestroySafely();
|
loader.WaitForAsyncComplete();
|
||||||
|
loader.Destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
_providerList.Clear();
|
_providerList.Clear();
|
||||||
|
@ -416,7 +418,7 @@ namespace YooAsset
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
#region 调试信息
|
#region 调试信息
|
||||||
internal List<DebugProviderInfo> GetDebugReportInfos()
|
internal List<DebugProviderInfo> GetDebugReportInfos()
|
||||||
{
|
{
|
||||||
List<DebugProviderInfo> result = new List<DebugProviderInfo>(_providerList.Count);
|
List<DebugProviderInfo> result = new List<DebugProviderInfo>(_providerList.Count);
|
||||||
|
@ -444,6 +446,6 @@ namespace YooAsset
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -144,15 +144,6 @@ namespace YooAsset
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 销毁资源包(安全模式)
|
|
||||||
/// </summary>
|
|
||||||
public void DestroySafely()
|
|
||||||
{
|
|
||||||
WaitForAsyncComplete();
|
|
||||||
Destroy();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 轮询更新
|
/// 轮询更新
|
||||||
|
|
|
@ -140,22 +140,6 @@ namespace YooAsset
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 销毁资源对象(安全模式)
|
|
||||||
/// </summary>
|
|
||||||
public void DestroySafely()
|
|
||||||
{
|
|
||||||
if (Status == EStatus.Loading || Status == EStatus.Checking)
|
|
||||||
{
|
|
||||||
WaitForAsyncComplete();
|
|
||||||
Destroy();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
Destroy();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 是否可以销毁
|
/// 是否可以销毁
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "com.tuyoogame.yooasset",
|
"name": "com.tuyoogame.yooasset",
|
||||||
"displayName": "YooAsset",
|
"displayName": "YooAsset",
|
||||||
"version": "1.5.2-preview",
|
"version": "1.5.3-preview",
|
||||||
"unity": "2019.4",
|
"unity": "2019.4",
|
||||||
"description": "unity3d resources management system.",
|
"description": "unity3d resources management system.",
|
||||||
"author": {
|
"author": {
|
||||||
|
|
Loading…
Reference in New Issue