This is a minimal version of Unity-Dependencies-Hunter in less than 100 lines of code. It scans all assets in the project, checks their dependencies, and lists those that are not referenced by any other asset.
Put it in the Assets/Editor
directory and run it from Tools -> Unreferenced Assets Finder
.
using System.Collections.Generic;
using System.IO;
using System.Linq;
using UnityEditor;