# OpenFolderPanel(string, string, string)

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

## Definition

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

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

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): **** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): **** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)):&#x20;

### Returns

| Type                                                           | Description |
| -------------------------------------------------------------- | ----------- |
| [string](https://learn.microsoft.com/dotnet/api/system.string) |             |

### Remarks

Additional Resources: [EditorUtility.OpenFilePanel](/engine/6000.0/script-reference/unityeditor/editorutility/openfilepanel.md), [EditorUtility.SaveFolderPanel](/engine/6000.0/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);
    }
}
```
