private void DrawGroupHeader(Group group) { if (!string.IsNullOrEmpty(group.name)) { if(group.displayHeader) { GUILayout.Space(10f); GUILayout.Label(group.name, InspectorStyle.DefaultStyle.groupHeaderStyle); if(!string.IsNullOrEmpty(group.description)) { GUILayout.Label(group.description, InspectorStyle.DefaultStyle.groupDescriptionStyle); } GUILayout.Space(15f); } else { GUILayout.Space(25f); } } }
private bool GroupIsFoldout(Group group) { return(group.foldable && group.foldout); }
private void DrawGroupHeader(Group group) { if (!string.IsNullOrEmpty(group.name)) { if(group.displayHeader) { GUILayout.Space(10f); if(group.foldable) { if(firstTimeDrew) { firstTimeDrew = false; group.foldout = false; } group.foldout = EditorGUILayout.Foldout(group.foldout, group.name, InspectorStyle.DefaultStyle.foldableGroupHeaderStyle); } else { group.foldout = true; GUILayout.Label(group.name, InspectorStyle.DefaultStyle.groupHeaderStyle); } if(!string.IsNullOrEmpty(group.description)) { GUILayout.Label(group.description, InspectorStyle.DefaultStyle.groupDescriptionStyle); } GUILayout.Space(15f); } else { GUILayout.Space(25f); } } }
private bool GroupIsFoldout(Group group) { return group.foldable && group.foldout; }
private void DrawGroupHeader(Group group) { if (!string.IsNullOrEmpty(group.name)) { GUILayout.Space(15f); GUILayout.Label(group.name, InspectorStyle.DefaultStyle.titleStyle); if(!string.IsNullOrEmpty(group.description)) { GUILayout.Label(group.description, InspectorStyle.DefaultStyle.titleDescriptionStyle); } GUILayout.Space(15f); } }