Example #1
0
 public void SaveIcon(string directory, string fileName, Texture2D source)
 {
     if (this.icon == null)
     {
         this.icon            = new Texture2D(this.iconSize, this.iconSize, TextureFormat.RGBA32, false);
         this.icon.filterMode = FilterMode.Bilinear;
     }
     TextureScale.CopyIntoTexture(source, this.icon);
     FileHelper.SaveTextureToFile(this.icon, directory, fileName);
 }