Пример #1
0
 // 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));
 }
Пример #2
0
 // 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);
 }