public override void OnInspectorGUI() { serializedObject.Update(); EditorGUILayout.PropertyField(csvFile_prop, new GUIContent("CSV File")); EditorGUILayout.PropertyField(seperator_prop, new GUIContent("Seperator")); EditorGUILayout.PropertyField(rowBasedLayout_prop, new GUIContent("Row-based Layout")); EditorGUILayout.PropertyField(seconFieldContainesDataType_prop, new GUIContent("Second row contains DataType")); if (GUILayout.Button("(Re)load Data")) { _provider.LoadData(); } serializedObject.ApplyModifiedProperties(); }