//------------------------------------------------------------------------- void _startCurrentBuild() { if (QueueNeedBuildPlatform.Count > 0) { mCurrentBuildTargetPlatform = QueueNeedBuildPlatform.Dequeue().BuildTarget; _getCurrentTargetPath(); string target_path = CurrentBuildProjectPlatformInfo.PlatformTargetRootPath + CurrentBuildProjectPlatformInfo.DataVersion; if (!Directory.Exists(target_path)) { Directory.CreateDirectory(target_path); } if (mIsPackSelectItem) { _packAssetBundleCompressSelect(); } else { _packAssetBundleCompressAll(target_path); } _packResources(target_path); } else { ShowNotification(new GUIContent("打包完成!")); EditorUserBuildSettings.SwitchActiveBuildTarget(mInitBuildTargetGroupPlatform, mInitBuildTargetPlatform); } }
//------------------------------------------------------------------------- void _startCurrentBuild() { if (QueueNeedBuildPlatform.Count > 0) { mCurrentBuildTargetPlatform = QueueNeedBuildPlatform.Dequeue().BuildTarget; _getCurrentTargetPath(); _packAssetBundleCompress(); } else { ShowNotification(new GUIContent("打包完成!")); EditorUserBuildSettings.SwitchActiveBuildTarget(mInitBuildTargetPlatform); //changeAssetBundleResourcePath(); //changeRowResourcePath(); } }