public void onSelect() { if (UnityEngine.Application.platform == RuntimePlatform.Android) { //要求API level 21 AndroidFilePicker.PickFolder((path) => { ConfigUtility.persistentDataPath = path; //AndroidTool.MakeToast("路徑:" + path); }); } else { var openFolder = OpenFolder.Open( "請選擇一個資料夾" ); var result = openFolder.ShowDialog(); if (result == DialogResult.OK) { var path = openFolder.SelectedPath; ConfigUtility.persistentDataPath = path; //print(path); } } }
public void openPickFolder() { if (UnityEngine.Application.platform == RuntimePlatform.Android) { //要求API level 21 AndroidFilePicker.PickFolder(callback); } else { var openFolder = OpenFolder.Open( "請選擇一個資料夾" ); var result = openFolder.ShowDialog(); if (result == DialogResult.OK) { var folderName = openFolder.SelectedPath; print(folderName); } } }
private void MetroButton3_Click(object sender, EventArgs e) { //OpenFolder(Program.AppConfigDir); OpenFolder.Open(Path.GetDirectoryName(ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.PerUserRoamingAndLocal).FilePath)); }
private void MetroButton2_Click(object sender, EventArgs e) { OpenFolder.Open(Program.LeagueConfigDirPath); }
private void MetroButton1_Click(object sender, EventArgs e) { OpenFolder.Open(Program.LeagueLogFileDirPath); }