Open Windows/WinForms FileBrowser from within Unity

Is there a way to use the Windows Forms API in Unity and open the default system file browser? I’ve tried importing the System.Windows.Forms.dll into Unity, but that only caused errors.

I’m developing a small media application within Unity and I need an administrator to be able to pick a file from a file dialog. Since this is not for the end user, I don’t want to spend time designing anything, best using only Windows default explorer browser.

Thanks for any suggestions!


I made an Asset to use the Native File Browser from Windows and Mac in Unity at runtime, it’s available on the Asset Store: Unity Asset Store - The Best Assets for Game Making

I’ve been searching for a way to do that for more than a year… and finally found how to do it :slight_smile: