private void OnGUI() { GUILayout.Label("Logged Features", EditorStyles.boldLabel); for (int i = 0; i < featureList.Count; i++) { bool selected = EditorGUILayout.Toggle(featureList[i].name, featureList[i].selected); if (selected != featureList[i].selected) { featureList[i].selected = selected; LoggingConfig.SetShouldLogFeature(new LoggedFeature(featureList[i].name), selected); } } }