// scene from MRU list private void Menu_File_Recent_Scene_Click(object sender, MRUListArgs e) { //Make sure the current scene is saved if (EditorApp.PromptSaveScene() == DialogResult.Cancel) return; string sceneName = e.item.PathName; //loads scene if possible LoadScene(sceneName,true); }
// project from MRU list private void Menu_File_Recent_Project_Click(object sender, MRUListArgs e) { //Make sure the current scene is saved if (EditorApp.PromptSaveScene() == DialogResult.Cancel) return; LoadProject(e.item.PathName,true); }