24 lines
481 B
C#
24 lines
481 B
C#
using System;
|
|
|
|
using UnityEngine;
|
|
|
|
namespace ResourceLoading
|
|
{
|
|
// Image downloader interface.
|
|
public interface ImageDownloader : IDisposable
|
|
{
|
|
// returns true when download is finished
|
|
bool IsDone { get; }
|
|
|
|
// texture created from the downloaded image
|
|
Texture2D Texture { get; }
|
|
|
|
// result of the download process
|
|
string Error { get; }
|
|
|
|
// raw access to downloaded data
|
|
byte[] Bytes { get; }
|
|
}
|
|
|
|
}
|
|
|