Hold the Alt button to expand or collapse the Hierarchy

Did you know that by holding the Alt button while clicking on Hierarchy or Project window arrows you can completely expand or collapse its contents? It can be especially useful when there’s a lot of items that you’d like to collapse or expand.

The trick is to hold the Alt button when clicking on the expand arrow to completely expand all of its children (you will see all nested children after this operation). To do the opposite, you can hold the Alt button when collapsing an item. By default, collapsing and expanding will get the item back to the same status as it was before. Normally you would need to manually collapse the previously expanded children in case you don’t want to see these items. Collapsing while holding the Alt button will also collapse all the children.

Here’s a video explaining this functionality:

The same can be done in the Project window.

related
AdvancedTips
Use CustomEditor to customize your script inspector
When your scripts are getting bigger, then usually the number of properties is greater too. Unity,...
1
AdvancedTips
Profiling Unity Application with Profiler Samples
The Unity Profiler Samples is something that most of Unity users are unaware of. Yet it can...
0
IntermediateTips
A Story of NullReferenceException [Part 2]
This is a story of NullReferenceException part 2. If you haven't read the part one, you can...
4
Call The Knights!
We are here for you.
Please contact us with regards to a Unity project below.



The Knights appreciate your decision!
Expect the first news soon!
hire us!