Browse Source

拍照路径

zhaoyang 3 years ago
parent
commit
c7a9a292d0

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