Пример #1
0
 /// <summary>
 /// This method will attempt to load a given path into a ImgDisp enabled component
 /// </summary>
 /// <param name="targetURL" type="string">The URL of the image to load</param>
 /// <param name="imgComp" type="ImgDisp">An ImgDisp component on it, which will receive the loaded image</param>
 public static void loadSpriteToObject(string targetURL, ImgDisp imgComp, string fileName = "")
 {
     imgComp.loadSpriteImage(targetURL, imgComp.gameObject, fileName);
 }
 /// <summary>
 /// This method will attempt to load a given path into a ImgDisp enabled component
 /// </summary>
 /// <param name="targetURL" type="string">The URL of the image to load</param>
 /// <param name="imgComp" type="ImgDisp">An ImgDisp component on it, which will receive the loaded image</param>
 public static void loadSpriteToObject(string targetURL, ImgDisp imgComp)
 {
     imgComp.loadSpriteImage(targetURL, imgComp.gameObject);
 }