Skip to content

Instantly share code, notes, and snippets.

@825i
825i / CleanEmptyFoldersEditorExtension.cs
Last active November 22, 2020 14:31 — forked from unity3dcollege/CleanEmptyFoldersEditorExtension.cs
Adds a dropdown option within Unity's Editor to allow the user to one-click delete 'empty’ folders that are still lingering due to a .meta file
using System.IO;
using System.Linq;
using UnityEditor;
using UnityEngine;
public class CleanEmptyFoldersEditorExtension : EditorWindow
{
private static string _deletedFolders;
[MenuItem("Tools/Clean Empty Folders")]