From a62fbf88e3e852d5e2d6e39e05db3d7896e34e0c Mon Sep 17 00:00:00 2001 From: lwb <q3213421wrwqr> Date: 星期四, 14 一月 2021 15:52:11 +0800 Subject: [PATCH] 9527 打包按钮优化 --- Assets/Editor/AssetBundleBrowser/AssetBundleBuildTab.cs | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/Assets/Editor/AssetBundleBrowser/AssetBundleBuildTab.cs b/Assets/Editor/AssetBundleBrowser/AssetBundleBuildTab.cs index 8126ca7..1df25dc 100644 --- a/Assets/Editor/AssetBundleBrowser/AssetBundleBuildTab.cs +++ b/Assets/Editor/AssetBundleBrowser/AssetBundleBuildTab.cs @@ -391,6 +391,11 @@ EditorApplication.delayCall += MakeAssetsVersionFile; } + if (GUILayout.Button("Copy to StreamingAssets")) + { + EditorApplication.delayCall += CopyToStreamingAssets; + } + EditorGUILayout.EndHorizontal(); EditorGUILayout.Space(); @@ -509,6 +514,13 @@ EditorGUILayout.EndScrollView(); } + private void CopyToStreamingAssets() + { + if (Directory.Exists(m_streamingPath)) + Directory.Delete(m_streamingPath, true); + DirectoryCopy(m_UserData.m_OutputPath, m_streamingPath); + } + private void ExecuteBuildAll() { -- Gitblit v1.8.0