Browse Source

Bugfix in newer versions of Unity

The removed line was not functioning as intended, it was covering the disclosure triangle of a parent GO with the mushroom icon if that parent GO also had a flowchart component.

I'm sure there was a reason for this logic change, so I've left the if cases intact, but this was necessary in my own project so I thought I'd share it.
master
TonyJeffree 5 years ago committed by GitHub
parent
commit
10fd74c4eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      Assets/Fungus/Scripts/Editor/HierarchyIcons.cs

2
Assets/Fungus/Scripts/Editor/HierarchyIcons.cs

@ -70,7 +70,7 @@ namespace Fungus
// place the icon to the left of the element
Rect r = new Rect(selectionRect);
#if UNITY_2019_1_OR_NEWER
r.x -= r.height;
r.x = 0;
#else
r.x = 0;
#endif

Loading…
Cancel
Save