private void GUIProfile(string profile, string path) { using (MadGUI.Indent(2)) { MadLevelProfile.profile = profile; if (Foldout("Levels", path + "/Levels")) { GUILevels(path + "/Levels"); } var profilePropertyNames = MadLevelProfile.GetProfilePropertyNames(); foreach (var profilePropertyName in profilePropertyNames) { GUIProperty(profilePropertyName, MadLevelProfile.GetProfileAny(profilePropertyName)); } } }