mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-07 16:45:10 +00:00
移除LoadSubAssetsSync
This commit is contained in:
@@ -207,22 +207,6 @@ namespace TEngine
|
|||||||
/// <typeparam name="T">要加载资源的类型。</typeparam>
|
/// <typeparam name="T">要加载资源的类型。</typeparam>
|
||||||
UniTaskVoid LoadAsset<T>(string location, Action<T> callback, string packageName = "") where T : UnityEngine.Object;
|
UniTaskVoid LoadAsset<T>(string location, Action<T> callback, string packageName = "") where T : UnityEngine.Object;
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 同步加载子资源对象。
|
|
||||||
/// </summary>
|
|
||||||
/// <typeparam name="TObject">资源类型。</typeparam>
|
|
||||||
/// <param name="location">资源的定位地址。</param>
|
|
||||||
/// <param name="packageName">指定资源包的名称。不传使用默认资源包</param>
|
|
||||||
public TObject[] LoadSubAssetsSync<TObject>(string location, string packageName = "") where TObject : UnityEngine.Object;
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 异步加载子资源对象。
|
|
||||||
/// </summary>
|
|
||||||
/// <typeparam name="TObject">资源类型。</typeparam>
|
|
||||||
/// <param name="location">资源的定位地址。</param>
|
|
||||||
/// <param name="packageName">指定资源包的名称。不传使用默认资源包</param>
|
|
||||||
public UniTask<TObject[]> LoadSubAssetsAsync<TObject>(string location, string packageName = "") where TObject : UnityEngine.Object;
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 异步加载资源。
|
/// 异步加载资源。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@@ -756,26 +756,6 @@ namespace TEngine
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
public TObject[] LoadSubAssetsSync<TObject>(string location, string packageName = "") where TObject : UnityEngine.Object
|
|
||||||
{
|
|
||||||
if (string.IsNullOrEmpty(location))
|
|
||||||
{
|
|
||||||
throw new GameFrameworkException("Asset name is invalid.");
|
|
||||||
}
|
|
||||||
|
|
||||||
throw new NotImplementedException();
|
|
||||||
}
|
|
||||||
|
|
||||||
public UniTask<TObject[]> LoadSubAssetsAsync<TObject>(string location, string packageName = "") where TObject : UnityEngine.Object
|
|
||||||
{
|
|
||||||
if (string.IsNullOrEmpty(location))
|
|
||||||
{
|
|
||||||
throw new GameFrameworkException("Asset name is invalid.");
|
|
||||||
}
|
|
||||||
|
|
||||||
throw new NotImplementedException();
|
|
||||||
}
|
|
||||||
|
|
||||||
public async UniTask<T> LoadAssetAsync<T>(string location, CancellationToken cancellationToken = default, string packageName = "") where T : UnityEngine.Object
|
public async UniTask<T> LoadAssetAsync<T>(string location, CancellationToken cancellationToken = default, string packageName = "") where T : UnityEngine.Object
|
||||||
{
|
{
|
||||||
if (string.IsNullOrEmpty(location))
|
if (string.IsNullOrEmpty(location))
|
||||||
|
Reference in New Issue
Block a user