A Unity Editor tool for finding and cleaning up unreferenced assets in your project.
- Smart Detection: Enhanced reference checking across scenes, prefabs, code, and more
- Folder-Specific Analysis: Analyze any folder or subfolder
- Context Menu Integration: Right-click on folders to analyze instantly
- Configurable Scanning: Toggle different detection methods
- Safe Deletion: Individual or batch deletion with confirmations
- Real-Time Progress: Live progress with cancellation support
- Download
AssetReferenceAnalyzer.cs
- Place it in your project's
Assets/Editor/
folder - Unity will automatically compile the script
- Right-click any folder in Project window
- Select "Analyze References in Folder"
- Configure detection options (optional)
- Click "Analyze References"
- Window → Asset Reference Analyzer
- Scenes: Check all scenes for asset references
- Prefabs: Scan prefabs and prefab variants
- ScriptableObjects: Check custom data containers
- Animations: Scan animation clips and controllers
- Code References: Search C# files for asset names/paths
- Resources Folders: Protect runtime-loaded assets
- Addressables: Check addressable asset system
- ✅ Confirmation dialogs for all deletions
- ✅ Progress tracking with cancellation
- ✅ Asset preview and selection
- ✅ Resources folder protection
- ✅ Addressable asset protection
- Unity 2019.4 or later
- .NET Framework 4.7.1+
- Any render pipeline
- Test thoroughly after cleanup
- Review results carefully before deleting
- Consider runtime asset loading patterns
- Use version control for safety
- Pre-build optimization
- Cleaning imported asset packs
- Regular project maintenance
- Removing prototype assets
MIT License - Free for commercial and personal use