JD2022-TU1/main/phone_apps/JDCompanionApp/Assets/Scripts/ResourceLoading/ImageDownloader.cs

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; }
}
}