Class RemoteTextureProvider
Provides a Texture2d object from a remote url using UnityWebRequestTexture.GetTexture.
Inherited Members
Namespace: UnityEngine.ResourceManagement.ResourceProviders.Experimental
Syntax
public class RemoteTextureProvider : ResourceProviderBase, IResourceProvider, IInitializableObject
Methods
CanProvide<TObject>(IResourceLocation)
Evaluate whether or not the provider can load the given location.
Declaration
public override bool CanProvide<TObject>(IResourceLocation location)
where TObject : class
Parameters
Type | Name | Description |
---|---|---|
IResourceLocation | location | Location to evaluate. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Type Parameters
Name | Description |
---|---|
TObject | The object type for the given location. |
Overrides
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> deps)
where TObject : class
Parameters
Type | Name | Description |
---|---|---|
IResourceLocation | location | Location to load. |
System.Collections.Generic.IList<System.Object> | deps |
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 |