ImprovedFileBrowser

By Daniel Brauer, inspired by AngryAnt's original FileBrowser.

Description
Implements a decent file browser GUILayout. This file browser allows you to have the user search for a file or folder, optionally matching a specific pattern. Note: This code uses the ImprovedSelectionList script, and assumes your GUISkin has a "List Item" custom style.

This is how the browser looks using the MetalGUISkin from Extra GUI Skins:



Fix: Root Directory
By Pablo Bollansée (The Oddler) - Unity 3.4.0f5 - Windows 7(x64)

more info why directotyName is null when it's the root directory see http://msdn.microsoft.com/en-us/library/system.io.path.getdirectoryname.aspx.

Usage
Here we have a file path that can be assigned using the file browser. It uses the filter so that only text files are selectable.