void DrawGroups() { var allGroups = HLODGroup.FindAllGroups(); foreach (var groupName in allGroups.Keys) { if (m_GroupExpanded.ContainsKey(groupName) == false) { m_GroupExpanded.Add(groupName, true); } m_GroupExpanded[groupName] = EditorGUILayout.Foldout(m_GroupExpanded[groupName], groupName); if (m_GroupExpanded[groupName]) { EditorGUI.indentLevel += 1; var groupConfig = Config.GetGroupConfig(groupName); DrawBatcher(groupConfig); DrawSimplification(groupConfig); DrawThreshold(groupConfig); EditorGUI.indentLevel -= 1; } GUILayout.Space(10); } }
void OnEnable() { m_GroupName = serializedObject.FindProperty("m_GroupName"); m_AllGroupNames = HLODGroup.FindAllGroups().Keys.ToList(); m_PopupContent = new HLODGroupPopupContent(m_AllGroupNames); m_PopupContent.SelectGroupName = m_GroupName.stringValue; }