private static CustomHierarchySettings GetOrCreateSettings()
        {
            CustomHierarchySettings settingsAsset = CreateInstance <CustomHierarchySettings>();

            Init();

            EditorApplication.RepaintHierarchyWindow();

            return(settingsAsset);
        }
Esempio n. 2
0
        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;
        }