Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Navigate through your Editor selection history

Use keyboard shortcuts or toolbar buttons to return to previously selected objects in the Editor.
Read time 1 minuteLast updated 19 days ago

Cycle backward or forward through your recently selected objects in the Unity Editor.
The Editor records your last 50 selections as you work. If you accidentally change your selection, you can navigate backward and forward through your selection history to reselect the item you want.
The Editor records any selection that displays an object in the
Inspector

?

window. For example, when you select a GameObject in the Hierarchy window or an asset in the Project window. You can also cycle through your selections as you navigate through the folder tree in the Project window.
Some packages, such as Shader Graph and VFX Graph, also register additional selections in the history.
You can navigate the selection history in the following ways:
  • Use keyboard shortcuts.
  • Use the Selection History controls in the toolbar.
  • Select Edit > Previous Selection or Edit > Next Selection in the main menu.
If you create an Editor window or tool with custom selections, you can use
Selection.RegisterCustomHandler
and
Selection.SetCustomSelection
to record those selections in the selection history.
To return to a previous selection, press Ctrl+Shift+[ (macOS: Cmd+Shift+[), or select Previous Selection in the toolbar.
If you have changed your selection to a previous selection, press Ctrl+Shift+] (macOS: Cmd+Shift+]), or select Next Selection in the toolbar to move forward to a more recent selection.
The Editor disables the toolbar buttons when there are no selections in that direction of the history.

Additional resources