Legacy Documentation: Version 2018.1 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

EditorUtility.OpenFilePanelWithFilters

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

Parameters

titleTitle for dialog.
directoryDefault directory.
filtersFile extensions in form { "Image files", "png,jpg,jpeg", "All files", "*" }.

Description

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

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