ソースコード
using UnityEditor; using System.IO; ... Texture2D tex = ...; var png = tex.EncodeToPNG(); File.WriteAllBytes( path, png );
参考サイト様
http://ft-lab.ne.jp/cgi-bin-unity/wiki.cgi?page=unity_script_texture2d_save_png_file
using UnityEditor; using System.IO; ... Texture2D tex = ...; var png = tex.EncodeToPNG(); File.WriteAllBytes( path, png );
http://ft-lab.ne.jp/cgi-bin-unity/wiki.cgi?page=unity_script_texture2d_save_png_file