Skip to content

Instantly share code, notes, and snippets.

LoneDev LoneDev6

Block or report user

Report or block LoneDev6

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@yasirkula
yasirkula / EditorCollapseAll.cs
Last active Oct 24, 2019
An editor script for Unity 3D to collapse all GameObject's in Hierarchy view or to collapse all folders in Project view. See the comments section below for instructions.
View EditorCollapseAll.cs
using System.Collections.Generic;
using System.IO;
using UnityEditor;
using UnityEngine;
using UnityEngine.SceneManagement;
public static class EditorCollapseAll
{
private static int wait = 0;
private static int undoIndex;
You can’t perform that action at this time.