EditorUtility.OpenFilePanelWithFilters

Declaration

public static string OpenFilePanelWithFilters(string title, string directory, string[] filters);

Parameters

title The text to display in the title bar of the dialog window.
directory The default file directory that this dialog opens. This parameter is relative to the project directory. For example, "Assets" displays the Assets directory when this dialog opens.
filters File extensions in form: new string[] { "Image files", "png,jpg,jpeg", "All files", "*" }.

Returns

string The fully qualified path name.

Description

Displays the "open file" dialog and returns the selected path name.


Did you find this page useful? Please give it a rating: