From eec5a35f5be05393a622a3ac6d46cf764014707a Mon Sep 17 00:00:00 2001 From: hevinci Date: Sat, 2 Apr 2022 18:34:49 +0800 Subject: [PATCH] Update EditorTools.cs --- Assets/YooAsset/Editor/EditorTools.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/YooAsset/Editor/EditorTools.cs b/Assets/YooAsset/Editor/EditorTools.cs index f8d2b78..b0d722e 100644 --- a/Assets/YooAsset/Editor/EditorTools.cs +++ b/Assets/YooAsset/Editor/EditorTools.cs @@ -107,9 +107,9 @@ namespace YooAsset.Editor /// 标题名称 /// 默认搜索路径 /// 返回选择的文件夹绝对路径,如果无效返回NULL - public static string OpenFolderPanel(string title, string defaultPath) + public static string OpenFolderPanel(string title, string defaultPath, string defaultName = "") { - string openPath = EditorUtility.OpenFolderPanel(title, defaultPath, string.Empty); + string openPath = EditorUtility.OpenFolderPanel(title, defaultPath, defaultName); if (string.IsNullOrEmpty(openPath)) return null;