Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Editor Forward/Back buttons editor script

Discussion in 'Assets and Asset Store' started by CausticLasagne, Jan 14, 2024.

  1. CausticLasagne


    Oct 2, 2015
    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!


    Attached Files:

    Last edited: Jan 15, 2024
    Bystander333 likes this.
  2. CodeSmile


    Apr 10, 2014
    These statements conflict each other, are vague, and actually prevent the legal use of this script!
    You say "don't distribute elsewhere" - that simply means nothing else but: "do not distribute", period. Regardless of how or in what form. So one cannot even legally download (read: "copy") the attached script to begin with. ;)

    Please use one of the common licenses available, like MIT License, and add it to the top of the script or as separate file so the legal terms are clear.
  3. CausticLasagne


    Oct 2, 2015
    Thank you. Put a license on it.
    Last edited: Feb 18, 2024
  4. Bystander333


    Jan 11, 2018
    Thanks, just what I was looking for,

    However there seems to be a redundant reference to using RotaryHeart.Lib.SerializableDictionaryPro which I commented out.