Beispiel #1
0
        private void BuildButton_clicked()
        {
            var buildMode = AssetBundleBuilderSettingData.Setting.BuildMode;

            if (EditorUtility.DisplayDialog("提示", $"通过构建模式【{buildMode}】来构建!", "Yes", "No"))
            {
                EditorTools.ClearUnityConsole();
                EditorApplication.delayCall += ExecuteBuild;
            }
            else
            {
                Debug.LogWarning("[Build] 打包已经取消");
            }
        }