Hi all! I created a simple script for the inspector that allows you to navigate backwards and forwards through selected objects in either the scene or project view.
It is battle tested and extremely robust:
It automatically filters out deleted objects if you try to navigate to one.
Hard limit on maximum selected objects in one operation = 100 for performance reasons
Back and forward buttons enable/disable if the operation would be valid/invalid
Reset button should you like to start a new navigation session
I’ve kept faithful to the design of this script in such a way that it mirrors most applications. If you were to navigate backwards a few objects and then select a new object, that new object will become the top of the list as would happen in chrome or explorer, etc.
I find that placing it on top of my inspector makes it so that I can access it regardless of if I have something selected or not.
NB: If you reload your scripting environment, the navigation session is reset. This is a unity thing and I may release an update in the future to counter this.
Caustic Navigator © 2024 by Shawn Fox is licensed under Attribution-NoDerivatives 4.0 International
NB: Attribution not required. However, please tell everyone about the other cool stuff I make!
Thanks and happy editing!
9580945–1356847–Navigator.cs (4.6 KB)