gdl_123 7 mēneši atpakaļ
vecāks
revīzija
fab9f39152

+ 2 - 1
Assets/Editor/Pack/Platform/PackPlatformBaseGUI.cs

@@ -15,7 +15,7 @@ namespace Pack
         {
             0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31
         };
-
+        protected bool IsBuildRes = true;
         public void DrawGUI(bool editable, PackPlatformBase sourcePackPlatform)
         {
             PackGUI.BeginChangeLabelWidth(250);
@@ -33,6 +33,7 @@ namespace Pack
             PackGUI.DrawVersionCodeField("App版本号", false, sourcePackPlatform.gameVersionCode, ref gameVersionCode);
             PackGUI.DrawVersionCodeField("Res版本号", false, sourcePackPlatform.resVersionCode, ref resVersionCode);
             PackGUI.DrawSelectFolderField("AppIcon的路径", Application.dataPath + PackConstant.AppIconSourcePath, sourcePackPlatform.iconRelativePath, ref iconRelativePath);
+            PackGUI.DrawToggleField("打包资源","1111",false,ref IsBuildRes);
             EditorGUI.indentLevel -= 1;
             EditorGUILayout.EndVertical();
 

+ 19 - 13
Assets/Editor/Pack/Platform/PackPlatformUnityBuild.cs

@@ -130,19 +130,25 @@ namespace Pack
                 AssetDatabase.Refresh();
                 ChangeBuildTarget();
                 ChangeLuaConfig();
-                ChangeGameAssets();
-                ChangeLogin();
-                ChangeLogo();
-                CheckAppInfo();
-                ChangeAppIcon();
-                ChangeSplashScreen();
-                ChangePlatformSpecial();
-                ChangePlayerSettings();
-                EditorUtility.ClearProgressBar();
-                AssetDatabase.Refresh();
-                AssetDatabase.SaveAssets();
-                ChangeAssetsObscure();
-                AssetBundleMap.BuildAllAssetBundles(resVersionCode);
+                if (IsBuildRes)
+                {
+                    Debug.Log("打包资源............");
+                    ChangeGameAssets();
+                    ChangeLogin();
+                    ChangeLogo();
+                    CheckAppInfo();
+                    ChangeAppIcon();
+                    ChangeSplashScreen();
+                    ChangePlatformSpecial();
+                    ChangePlayerSettings();
+                    EditorUtility.ClearProgressBar();
+                    AssetDatabase.Refresh();
+                    AssetDatabase.SaveAssets();
+                    ChangeAssetsObscure();
+
+                    AssetBundleMap.BuildAllAssetBundles(resVersionCode);
+                }
+
                 if (Application.isBatchMode)
                 {
                     PackLog.Log(PackConstant.TAG_ResOutPath + BundleBuilderZ.GetAssetbundlesPath());