Class AssetBundleProvider
IResourceProvider for asset bundles. Loads bundles via UnityWebRequestAssetBundle API if the internalId starts with "http". If not, it will load the bundle via AssetBundle.LoadFromFileAsync.
Inherited Members
Namespace: UnityEngine.ResourceManagement.ResourceProviders
Assembly: Unity.ResourceManager.dll
Syntax
public class AssetBundleProvider : ResourceProviderBase, IResourceProvider, IInitializableObject
Properties
Name | Description |
---|---|
UnloadingBundles | Stores async operations that unload the requested AssetBundles. |
Methods
Name | Description |
---|---|
GetDefaultType(IResourceLocation) | Get the default type of object that this provider can provide. |
Provide(ProvideHandle) | Provide the object specified in the provideHandle. |
Release(IResourceLocation, object) | Releases the asset bundle via AssetBundle.Unload(true). |
ShouldRetryDownloadError(UnityWebRequestResult) | Determines if the web request can be retried based on its result info. |