// this is just for if you want the sprite directly. // It is recommended that you use the LoadImage method above // unless your game requires the direct sprite object. // (if in doubt, use the method above) public static UnityEngine.Sprite LoadImage(string url) { return(WebInterface.LoadImage(url)); }
// repeat for easy calling // url: the url the image is at // public static void LoadImage(string url, UnityEngine.UI.Image img) { WebInterface.LoadImage(url, img); }