// This calls on the obj importer once the filebrowser recognises a file being clicked public void OpenFileButtonClick() { if (!string.IsNullOrEmpty(OpenFilePath) && FileBrowser.BrowserCallback != null) { FileBrowser.BrowserCallback(OpenFilePath); } objImporter.ImportModelAsync("MyObject", OpenFilePath, null, importOptions); }
/// <summary> /// Return selected file path if widow opened with <c>OpenFileBrowser(MonoBehavior)</c> /// and close browser window /// </summary> public void OpenFileButtonClick() { if (!string.IsNullOrEmpty(OpenFilePath) && FileBrowser.BrowserCallback != null) { FileBrowser.BrowserCallback(OpenFilePath); } CloseFileBrowser(); }