zhaoyang 3 жил өмнө
parent
commit
4bc371eaa3

+ 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)
         {