Class AssetBundleProvider
IResourceProvider for asset bundles. Loads bundles via UnityWebRequestAssetBundle API if the internalId contains "://". If not, it will load the bundle via AssetBundle.LoadFromFileAsync.
Inherited Members
Namespace: UnityEngine.ResourceManagement.ResourceProviders
Syntax
public class AssetBundleProvider : ResourceProviderBase, IResourceProvider, IInitializableObject
Methods
GetDefaultType(IResourceLocation)
Get the default type of object that this provider can provide.
Declaration
public override Type GetDefaultType(IResourceLocation location)
Parameters
Type | Name | Description |
---|---|---|
IResourceLocation | location |
Returns
Type | Description |
---|---|
System.Type |
Overrides
Provide(ProvideHandle)
Provide the object specified in the provideHandle.
Declaration
public override void Provide(ProvideHandle providerInterface)
Parameters
Type | Name | Description |
---|---|---|
ProvideHandle | providerInterface |
Overrides
Release(IResourceLocation, Object)
Releases the asset bundle via AssetBundle.Unload(true).
Declaration
public override void Release(IResourceLocation location, object asset)
Parameters
Type | Name | Description |
---|---|---|
IResourceLocation | location | |
System.Object | asset |