Class BundledAssetProvider
Provides assets stored in an asset bundle.
Inherited Members
Namespace: UnityEngine.ResourceManagement.ResourceProviders
Syntax
public class BundledAssetProvider : ResourceProviderBase, IResourceProvider, IInitializableObject
Methods
Provide<TObject>(IResourceLocation, IList<Object>)
Synchronously load the resource at the given location. An asynchronous load operation for any dependencies should be passed as an argument.
Declaration
public override IAsyncOperation<TObject> Provide<TObject>(IResourceLocation location, IList<object> loadDependencyOperation)
where TObject : class
Parameters
| Type | Name | Description |
|---|---|---|
| IResourceLocation | location | Location to load. |
| System.Collections.Generic.IList<System.Object> | loadDependencyOperation |
Returns
| Type | Description |
|---|---|
| IAsyncOperation<TObject> | An asynchronous operation to load the object. |
Type Parameters
| Name | Description |
|---|---|
| TObject | Object type to be loaded and returned. |
Overrides
Release(IResourceLocation, Object)
Declaration
public override bool Release(IResourceLocation location, object asset)
Parameters
| Type | Name | Description |
|---|---|---|
| IResourceLocation | location | |
| System.Object | asset |
Returns
| Type | Description |
|---|---|
| System.Boolean |