public static string[] ShowEditor(string[] names, DataType[] types, string[] values) { EditorWindow editor=new EditorWindow(names, types, values); editor.ShowDialog(); if(editor.save) return editor.values; else return null; }