@@ -6,7 +6,6 @@ A simple wrapper for native file dialogs on Windows/Mac.
66- Open file/folder, save file dialogs supported.
77- Multiple file selection.
88- File extension filter.
9- - Windows version requires .NET 2.0 api compatibility level
109- Linux is not supported.
1110- Basic WebGL support.
1211
@@ -16,6 +15,9 @@ Example usage:
1615// Open file
1716var paths = StandaloneFileBrowser .OpenFilePanel (" Open File" , " " , " " , false );
1817
18+ // Open file async
19+ StandaloneFileBrowser .OpenFilePanelAsync (" Open File" , " " , " " , false , (string [] paths ) => { });
20+
1921// Open file with filter
2022var extensions = new [] {
2123 new ExtensionFilter (" Image Files" , " png" , " jpg" , " jpeg" ),
@@ -27,21 +29,34 @@ var paths = StandaloneFileBrowser.OpenFilePanel("Open File", "", extensions, tru
2729// Save file
2830var path = StandaloneFileBrowser .SaveFilePanel (" Save File" , " " , " " , " " );
2931
32+ // Save file async
33+ StandaloneFileBrowser .SaveFilePanelAsync (" Save File" , " " , " " , " " , (string path ) => { });
34+
3035// Save file with filter
3136var extensionList = new [] {
3237 new ExtensionFilter (" Binary" , " bin" ),
3338 new ExtensionFilter (" Text" , " txt" ),
3439};
3540var path = StandaloneFileBrowser .SaveFilePanel (" Save File" , " " , " MySaveFile" , extensionList );
3641```
37- Look for Sample/BasicSampleScene.unity for more detailed examples.
42+ Look Sample/BasicSampleScene.unity for more detailed examples.
3843
3944Mac Screenshot
4045![ Alt text] ( /Images/sfb_mac.jpg?raw=true " Mac ")
4146
4247Windows Screenshot
4348![ Alt text] ( /Images/sfb_win.jpg?raw=true " Win ")
4449
50+ Notes:
51+ - Windows
52+ * Requires .NET 2.0 api compatibility level
53+ * Plugin import settings should be like this;
54+
55+ ![ Alt text] ( /Images/win_import_1.jpg?raw=true " Plugin Import Ookii ") ![ Alt text] ( /Images/win_import_2.jpg?raw=true " Plugin Import System.Forms ")
56+
57+ - Mac
58+ * Sync calls are throws an exception at development build after native panel loses and gains focus. Use async calls to aviod this.
59+
4560WebGL:
4661 - Basic upload/download file support.
4762 - Not well tested, probably not much reliable.
0 commit comments