Hi there, I'd like to share a simple editor script that allows you to collapse all folders in the Project view or collapse all GameObjects in Hierarchy view programmatically. EDIT: Up-to-date version of the script is available at: https://gist.github.com/yasirkula/0b541b0865eba11b55518ead45fba8fc Simply create an EditorCollapseAll.cs script in Assets/Editor folder of your project and paste the above code in it. Collapsing Hierarchy View To collapse all GameObjects in the currently active Hierarchy view, either use the GameObject menu or right click a GameObject and select "Collapse All". Collapsing Project View To collapse all folders in Project view, either use the Assets menu or right click an asset and select "Collapse Folders". Note that folders containing the selected assets will not be collapsed. Enjoy!