zhaoyang 3 年之前
父節點
當前提交
4bc371eaa3
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      GameClient/Assets/Game/HotUpdate/Views/DressUp/PhotographSaveView.cs

+ 4 - 4
GameClient/Assets/Game/HotUpdate/Views/DressUp/PhotographSaveView.cs

@@ -63,11 +63,11 @@ namespace GFGGame
             Debug.Log("文件路径:" + path);
             Texture2D tex = this.viewData as Texture2D;
             byte[] bytes = tex.EncodeToPNG();//将纹理数据,转化成一个png图片
-            File.WriteAllBytes(path + "/Pictures/Screenshots/" + fileName, bytes);
+            File.WriteAllBytes(path + fileName, bytes);
             Timers.inst.StartCoroutine(GetSaveState(path));// ();
-            string[] paths = new string[1];
-            paths[0] = path;
-            ScanFile(paths);
+            // string[] paths = new string[1];
+            // paths[0] = path;
+            // ScanFile(paths);
         }
         private IEnumerator GetSaveState(string path)
         {