public override void OnInspectorGUI() { base.OnInspectorGUI(); //DrawDefaultInspector(); //GUILayout.TextField("txt file", inPath); MapConverter mapConverter = (MapConverter)base.target; if (GUILayout.Button("Convert")) { //mapConverter.; mapConverter.ConvertFromGUI(); } }