Created
May 5, 2020 17:56
-
-
Save mukaschultze/485556df9da232c5a221b528fd476cfc to your computer and use it in GitHub Desktop.
Remove left side tint in the Unity hierarchy window
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEditor; | |
using UnityEngine; | |
namespace EnhancedHierarchy { | |
[InitializeOnLoad] | |
static class RemoveDefaultBG { | |
static RemoveDefaultBG() { | |
After.Frames(1, () => { | |
var s = ReflectionHelper.FindType("UnityEditor.SceneVisibilityHierarchyGUI"); | |
var t = s.GetNestedType("Styles", ReflectionHelper.FULL_BINDING); | |
t.SetStaticField("backgroundColor", Color.clear); | |
}); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment