The custom editor for Unity to highlight a game object that has a prefix '—' in its name to help seperate stuff in the Hierachy panel.

custom editor

respository: https://github.com/CSaratakij/HierachySection
responsible: all

Showcase

How it works

This is possible by simply hook the event “EditorApplication.hierachyWindowItemOnGUI”, Check the current gameobject item name whether it has a prefix “—” and draw the stuff on top of the current Hierachy Window item. (Immediate mode gui style)