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.
Inheritance
AssetBundleProvider
Syntax
public class AssetBundleProvider : ResourceProviderBase, IResourceProvider, IInitializableObject
Properties
DataStreamProcessor
Declaration
public IDataConverter DataStreamProcessor { get; set; }
Property Value
Methods
GetDefaultType(IResourceLocation)
Get the default type of object that this provider can provide.
Declaration
public override Type GetDefaultType(IResourceLocation location)
Parameters
Returns
Overrides
Initialize(String, String)
Declaration
public override bool Initialize(string id, string data)
Parameters
Returns
Overrides
Provide(ProvideHandle)
Provide the object specified in the provideHandle.
Declaration
public override void Provide(ProvideHandle providerInterface)
Parameters
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 |
The location of the asset to release
|
Object |
asset |
The asset in question
|
Overrides