Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        private static void PainBackground(HierarchyItem item)
        {
            Color32 color = item.IsSelected ? EditorColors.GetDefaultBackgroundColor(EditorUtils.IsHierarchyFocused, item.IsSelected) : item.PrettyObject.BackgroundColor;

            EditorGUI.DrawRect(item.BackgroundRect, color);
        }