ParaImageService.DownloadImage

Declaration

public static void DownloadImage(string url, Action<Texture2D> callback)

Parameters

Parameter NameParameter Description
urlURL of the image to be downloaded
callbackCallback function triggered after the image is downloaded successfully. It will return the downloaded texture.

Description

Downloads an image through its URL, and then converts it to the Texture2D texture. Downloads an image for management.