瀏覽代碼

拍照路径

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

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

@@ -39,7 +39,8 @@ namespace GFGGame
 
 
 #if UNITY_ANDROID
-            path = Application.persistentDataPath.IndexOf("Android") > 0 ? path.Substring(0, Application.persistentDataPath.IndexOf("Android")) : path + "/Pictures/万世镜/";
+
+            path = Application.persistentDataPath.IndexOf("Android") > 0 ? path.Substring(0, Application.persistentDataPath.IndexOf("Android")) + "/Pictures/万世镜/" : path + "/Pictures/万世镜/";
 #endif
             //判断目录是否存在,不存在则会创建目录
             if (!Directory.Exists(path))