Skip to content

Instantly share code, notes, and snippets.

@mukaschultze
Created May 5, 2020 17:56
Show Gist options
  • Save mukaschultze/485556df9da232c5a221b528fd476cfc to your computer and use it in GitHub Desktop.
Save mukaschultze/485556df9da232c5a221b528fd476cfc to your computer and use it in GitHub Desktop.
Remove left side tint in the Unity hierarchy window
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