public bool checkSaveLocation() { if (m_saveLocation != "") { return(true); } else { SimpleFileBrowser.ShowSaveDialog(OpenFolder, null, true, null, "Select Output Folder", "Select"); } return(false); }
public bool CheckSaveLocation(System.Action saveCallback, SimpleFileBrowser.OnCancel cancelCallback) { if (m_saveLocation != "") { return(true); } else { cancelRecordCallback = new System.Action(cancelCallback); beginRecordCallback = saveCallback; SimpleFileBrowser.ShowSaveDialog(OpenFolder, CancelRecord, true, null, "Select Output Folder", "Select"); } return(false); }
void Awake() { m_instance = this; itemHeight = ((RectTransform)itemPrefab.transform).sizeDelta.y; nullPointerEventData = new UnityEngine.EventSystems.PointerEventData(null); InitializeFiletypeIcons(); filetypeIcons = null; SetExcludedExtensions(excludeExtensions); excludeExtensions = null; filenameInputField.onValidateInput += OnValidateFilenameInput; InitializeQuickLinks(); }
public void BrowseSaveFile() { SimpleFileBrowser.ShowSaveDialog(SaveFile, null, true, null, "Select Output File", "Select"); }
// void LateUpdate () // { // // if ( Input.GetKeyDown ( KeyCode.Y ) ) // { // BrowseSaveFile (); // } // // if ( Input.GetKeyDown ( KeyCode.H ) ) // { // BrowseLoadFile (); // } // // } public void BrowseLoadFile() { SimpleFileBrowser.ShowLoadDialog(LoadFile, null, false, null, "Select Input File", "Select"); }
// string saveLocation = ""; void Awake() { browser = new SimpleFileBrowser(); browser.AcceptNonExistingFilename = true; }
public void SetFileBrowser(SimpleFileBrowser fileBrowser) { this.fileBrowser = fileBrowser; }