mirror of
https://github.com/tuyoogame/YooAsset.git
synced 2026-05-20 07:10:09 +00:00
Remove LoadAllAssets method.
移除YooAssets.LoadAllAssets方法。
This commit is contained in:
@@ -196,24 +196,6 @@ namespace YooAsset
|
||||
return provider.CreateHandle() as SubAssetsOperationHandle;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 加载资源包里的所有资源对象
|
||||
/// </summary>
|
||||
public static AllAssetsOperationHandle LoadAllAssetsAsync(string assetPath, System.Type assetType)
|
||||
{
|
||||
ProviderBase provider = TryGetProvider(assetPath);
|
||||
if (provider == null)
|
||||
{
|
||||
if (SimulationOnEditor)
|
||||
provider = new DatabaseAllAssetsProvider(assetPath, assetType);
|
||||
else
|
||||
provider = new BundledAllAssetsProvider(assetPath, assetType);
|
||||
provider.InitSpawnDebugInfo();
|
||||
_providers.Add(provider);
|
||||
}
|
||||
return provider.CreateHandle() as AllAssetsOperationHandle;
|
||||
}
|
||||
|
||||
|
||||
internal static void UnloadSubScene(ProviderBase provider)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user