public void CreateButtonWindow() { BasicWindow bw = new BasicWindow("Selector"); Action[] actions = new Action[3]; actions[0] = () => { for (int i = 0; i < selectedIndicesList.Count; i++) { string msg = ""; for (int j = 0; j < selectedIndicesList[i].Length; j++) { msg += selectedIndicesList[i][j]; if (j != 0) { msg += ","; } } Debug.Log("Selected " + i + ":" + msg); } }; actions[1] = () => { SetFromSelection(); }; actions[2] = () => { RestoreSelectionOnList(null, true); }; Action[] actions2 = new Action[2] { () => { //Delete For One Group BasicFunc.DoDelete(RestoreSelectionOnList(), true); }, () => { //Delete For Multi Group DoForMultiSelection((list) => { BasicFunc.DoDelete(list); }); } }; bw.AddButtons(actions, new string[3] { "Print", "Refresh Select", "Restore Selection" }); bw.AddButtons(actions2, new string[2] { "Delete Topo", "Delete Topo For Multi" }); bw.Show(); }