// Opens the File Browser in the specified mode private void OpenFileBrowser(SfbMode mode, string path, Action <string[]> outputCallback, string[] extensions = null) { if (mode == SfbMode.Save) { fileBrowser.SaveFile(path, outputCallback, extensions); } else { fileBrowser.OpenFile(path, outputCallback, extensions); } }
private void OpenFileBrowser(SfbMode mode, string path, Action <string[]> outputCallback, string[] extensions = null) { controller.enabled = false; Cursor.visible = true; if (mode == SfbMode.Save) { fileBrowser.SaveFile(path, outputCallback, extensions); } else { fileBrowser.OpenFile(path, outputCallback, extensions); } }