From 46286b88408092dff650f733ff60e544786ed999 Mon Sep 17 00:00:00 2001 From: Steve Halliwell Date: Thu, 19 Mar 2020 19:30:32 +1000 Subject: [PATCH] Change HierarchyIcon offset For Unity 2019.1 and up --- Assets/Fungus/Scripts/Editor/HierarchyIcons.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Fungus/Scripts/Editor/HierarchyIcons.cs b/Assets/Fungus/Scripts/Editor/HierarchyIcons.cs index 0c3abcae..69e7fda6 100644 --- a/Assets/Fungus/Scripts/Editor/HierarchyIcons.cs +++ b/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 = 0; + r.x -= 28; //this would make sense as singleLineHeight *2 but it isn't as that includes padding #else r.x = 0; #endif