|
@@ -66,7 +66,7 @@ namespace GFGGame
|
|
|
Texture2D tex = this.viewData as Texture2D;
|
|
|
byte[] bytes = tex.EncodeToPNG();//将纹理数据,转化成一个png图片
|
|
|
var filePath = path + fileName;
|
|
|
- File.WriteAllBytes(filePath, bytes);
|
|
|
+ //File.WriteAllBytes(filePath, bytes);
|
|
|
//GetSaveState(path);
|
|
|
savePngAndUpdate(filePath);
|
|
|
}
|