EditorUtility.OpenFilePanelWithFilters

切换到手册
public static string OpenFilePanelWithFilters (string title, string directory, string[] filters);

参数

title对话框名称。
directory默认目录。
filters文件扩展名格式为 { "Image files", "png,jpg,jpeg", "All files", "*" }。

描述

显示“打开文件”对话框并返回所选的路径名称。