|
1 | 1 | var StandaloneFileBrowserWebGLPlugin = { |
2 | 2 | // Open file. |
3 | | - // gameObjectNamePtr: GameObject name required for calling back unity side with SendMessage. And it should be unique |
4 | | - // filter(disabled): Filter files. Example filters: |
| 3 | + // gameObjectNamePtr: Unique GameObject name. Required for calling back unity with SendMessage. |
| 4 | + // methodNamePtr: Callback method name on given GameObject. |
| 5 | + // filter: Filter files. Example filters: |
5 | 6 | // Match all image files: "image/*" |
6 | 7 | // Match all video files: "video/*" |
7 | 8 | // Match all audio files: "audio/*" |
8 | | - // Custom: ".plist,.xml,.yaml" |
9 | | - // multiselect(disabled): Allows multiple file selection |
| 9 | + // Custom: ".plist, .xml, .yaml" |
| 10 | + // multiselect: Allows multiple file selection |
10 | 11 | UploadFile: function(gameObjectNamePtr, methodNamePtr, filterPtr, multiselect) { |
11 | 12 | gameObjectName = Pointer_stringify(gameObjectNamePtr); |
12 | 13 | methodName = Pointer_stringify(methodNamePtr); |
@@ -53,13 +54,6 @@ var StandaloneFileBrowserWebGLPlugin = { |
53 | 54 | } |
54 | 55 | }, |
55 | 56 |
|
56 | | - // Open folder. - NOT IMPLEMENTED |
57 | | - UploadFolder: function(gameObjectNamePtr) { |
58 | | - gameObjectName = Pointer_stringify(gameObjectNamePtr); |
59 | | - methodName = Pointer_stringify(methodNamePtr); |
60 | | - SendMessage(gameObjectName, methodName, ''); |
61 | | - }, |
62 | | - |
63 | 57 | // Save file |
64 | 58 | // DownloadFile method does not open SaveFileDialog like standalone builds, its just allows user to download file |
65 | 59 | // gameObjectNamePtr: Unique GameObject name. Required for calling back unity with SendMessage. |
|
0 commit comments