Class UnityTextureLoader
Adapter class which loads textures using Unity's WebRequestsTexture
Implements
IContentLoader<Texture2D>
Namespace: i5.Toolkit.Core.Utilities.ContentLoaders
Assembly: cs.temp.dll.dll
Syntax
public class UnityTextureLoader : IContentLoader<Texture2D>
Methods
LoadAsync(String)
Loads the texture at the given URI using Unity's built-in methods
Declaration
public async Task<WebResponse<Texture2D>> LoadAsync(string uri)
Parameters
Type | Name | Description |
---|---|---|
String | uri | The uri where the texture is stored |
Returns
Type | Description |
---|---|
Task<WebResponse<Texture2D>> | Returns a WebResponse with the results of the web request |