Update EditorTools.cs

pull/4/head
hevinci 2022-04-02 18:34:49 +08:00
parent 528eccbd9e
commit eec5a35f5b
1 changed files with 2 additions and 2 deletions

View File

@ -107,9 +107,9 @@ namespace YooAsset.Editor
/// <param name="title">标题名称</param>
/// <param name="defaultPath">默认搜索路径</param>
/// <returns>返回选择的文件夹绝对路径如果无效返回NULL</returns>
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;