Skip to content

Commit e7890e7

Browse files
2 parents e9dcbc2 + 9497cbd commit e7890e7

7 files changed

Lines changed: 18 additions & 3 deletions

File tree

Images/sfb_icon.png

-23.2 KB
Binary file not shown.

Images/sfb_large.png

-13.2 KB
Binary file not shown.

Images/sfb_small.png

-10.8 KB
Binary file not shown.

Images/win_import_1.jpg

30.6 KB
Loading

Images/win_import_2.jpg

31.2 KB
Loading

ProjectSettings/ProjectVersion.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
m_EditorVersion: 2017.1.0f3
1+
m_EditorVersion: 2017.1.1f1

README.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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
1716
var 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
2022
var 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
2830
var path = StandaloneFileBrowser.SaveFilePanel("Save File", "", "", "");
2931

32+
// Save file async
33+
StandaloneFileBrowser.SaveFilePanelAsync("Save File", "", "", "", (string path) => { });
34+
3035
// Save file with filter
3136
var extensionList = new [] {
3237
new ExtensionFilter("Binary", "bin"),
3338
new ExtensionFilter("Text", "txt"),
3439
};
3540
var 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

3944
Mac Screenshot
4045
![Alt text](/Images/sfb_mac.jpg?raw=true "Mac")
4146

4247
Windows 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 avoid this.
59+
4560
WebGL:
4661
- Basic upload/download file support.
4762
- Not well tested, probably not much reliable.

0 commit comments

Comments
 (0)