private static CustomHierarchySettings GetOrCreateSettings() { CustomHierarchySettings settingsAsset = CreateInstance <CustomHierarchySettings>(); Init(); EditorApplication.RepaintHierarchyWindow(); return(settingsAsset); }
static CustomHierarchyEditor() { //Order here matters. Icons = new CustomHierarchyDrawer[] { new WarningIcon(), new EnabledIcon(), new LayerTagDrawer(), new GameObjectIconDrawer(), new StaticIcon(), new HeaderDrawer(), new OutlineDrawer() }; CustomHierarchySettings.Load(); EditorApplication.RepaintHierarchyWindow(); EditorApplication.hierarchyWindowItemOnGUI += HierarchyWindowItemOnGui; }