Yeah, a simple case of “store current selection and allow going back/forward in history” is pretty simple to do. A whole bunch of people have done it already, here’s a ransom selection:
-
GitHub - acoppes/unity-history-window: A simple selection history window for Unity.
-
GitHub - justonia/UnitySelectionHistory: Selection history and navigation for Unity
What some of those do not handle, is multi-selection.
What none of those handle, is “non-object based selection”, e.g. selected nodes in an animator state machine, or a shadergraph, or timeline clips, or preferences window pages, etc.
The “built-in” feature for all of this has been attempted several times over the years, but never shipped for one or another reason. The latest iteration was when I worked on adding it in late 2021, but then I left Unity
The “mostly finished” (famous last words…) state has been passed on to the relevant people, but at this point I don’t know if/when they plan to ship it. Or whether it has faced the same fate as some previous iterations, where it was discarded.