Esempio n. 1
0
        private void OnGUI()
        {
            if (GUILayout.Button("标记"))
            {
                SetPackingTagAndAssetBundle();
            }

            this.platformType            = (PlatformType)EditorGUILayout.EnumPopup(platformType);
            this.buildAssetBundleOptions = (BuildAssetBundleOptions)EditorGUILayout.EnumMaskField("BuildAssetBundleOptions(可多选): ", this.buildAssetBundleOptions);

            if (GUILayout.Button("开始打包"))
            {
                BuildHelper.Build(this.platformType, this.buildAssetBundleOptions);
            }
        }
Esempio n. 2
0
        private void OnGUI()
        {
            if (GUILayout.Button("标记"))
            {
                SetPackingTagAndAssetBundle();
            }

            this.platformType            = (PlatformType)EditorGUILayout.EnumPopup(platformType);
            this.isBuildExe              = EditorGUILayout.Toggle("是否打包EXE: ", this.isBuildExe);
            this.buildOptions            = (BuildOptions)EditorGUILayout.EnumMaskField("BuildOptions(可多选): ", this.buildOptions);
            this.buildAssetBundleOptions = (BuildAssetBundleOptions)EditorGUILayout.EnumMaskField("BuildAssetBundleOptions(可多选): ", this.buildAssetBundleOptions);

            if (GUILayout.Button("开始打包"))
            {
                if (this.platformType == PlatformType.None)
                {
                    Log.Error("请选择打包平台!");
                    return;
                }
                BuildHelper.Build(this.platformType, this.buildAssetBundleOptions, this.buildOptions, this.isBuildExe);
            }
        }