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