# OpenFolderPanel(string, string, string)

> Displays the "open folder" dialog and returns the selected path name.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor](/engine/6000.6/script-reference/unityeditor.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public static string OpenFolderPanel(string title, string folder, string defaultName)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The text to display in the title bar of the dialog window.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): 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.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The default name to name the folder. Can be an empty string.

### Returns

| Type                                                           | Description                           |
| -------------------------------------------------------------- | ------------------------------------- |
| [string](https://learn.microsoft.com/dotnet/api/system.string) | The fully qualified path to a folder. |

### Remarks

Additional Resources: [EditorUtility.OpenFilePanel](/engine/6000.6/script-reference/unityeditor/editorutility/openfilepanel.md), [EditorUtility.SaveFolderPanel](/engine/6000.6/script-reference/unityeditor/editorutility/savefolderpanel.md) functions.

### Examples

```csharp
using UnityEditor;
using System.IO;

public class OpenFolderPanelExample : EditorWindow
{
    [MenuItem("Example/Load Textures To Folder")]
    static void Apply()
    {
        string path = EditorUtility.OpenFolderPanel("Load png Textures", "", "");
        string[] files = Directory.GetFiles(path);

        foreach (string file in files)
            if (file.EndsWith(".png"))
                File.Copy(file, EditorApplication.currentScene);
    }
}
```
