OpenFilePanelWithFilters(string, string, string[])
Displays the "open file" dialog and returns the selected path name.
Read time 1 minuteLast updated 2 months ago
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
public static string OpenFilePanelWithFilters(string title, string directory, string[] filters)
Parameters
The text to display in the title bar of the dialog window.
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.
File extensions in form: new string[] { "Image files", "png,jpg,jpeg", "All files", "*" }.
Returns
Type | Description |
|---|---|
| string | The fully qualified path name. |