private static void PaintBackground(HierarchyItem item) { Color32 color; if (item.PrettyObject.UseDefaultBackgroundColor || item.IsSelected) { color = EditorColors.GetDefaultBackgroundColor(EditorUtils.IsHierarchyFocused, item.IsSelected); } else { color = item.PrettyObject.BackgroundColor; } EditorGUI.DrawRect(item.BackgroundRect, color); }
private static void PainBackground(HierarchyItem item) { Color32 color = item.IsSelected ? EditorColors.GetDefaultBackgroundColor(EditorUtils.IsHierarchyFocused, item.IsSelected) : item.PrettyObject.BackgroundColor; EditorGUI.DrawRect(item.BackgroundRect, color); }