Ad

Unity-Dependencies-Hunter: Find unused assets in Unity projects

Dependencies Hunter scans Unity projects to identify and optionally remove unreferenced assets, improving project efficiency. It analyzes asset dependencies and provides options for addressing unused resources.
Screenshot of AlexeyPerov/Unity-Dependencies-Hunter homepage

Dependencies Hunter scans your Unity project to identify assets that aren't referenced elsewhere. It works by building a map of all assets and their dependencies using AssetDatabase.GetAllAssetPaths() and AssetDatabase.GetDependencies. Unused assets are those that lack dependencies within this map, unless specifically excluded by regular expression patterns. The tool provides both a window and context menu options for easy usage.

This tool offers a streamlined approach to dependency analysis with a single script for easy portability. It supports enabling the analysis of AssetReferences, which are often ignored by default. It includes options to efficiently leverage previous analysis results, significantly speeding up repeated scans. The user-friendly interface via editor windows and context menu actions enhances usability.

  • Unused Asset Identification: Identifies assets without references for potential removal, reducing project bloat.
  • AssetReference Support: Analyzes AssetReference properties, treating them as regular dependencies when enabled.
  • Flexible Usage: Offers both a dedicated editor window and context menu options for versatile workflows.
  • Configurable Exclusion: Provides regular expression patterns to exclude specific files or folders from analysis.
  • Performance Optimization: Supports using cached dependency data for faster repeated analyses.
  • Detailed Reporting: Displays lists of unused assets and references in dedicated windows.
  • Integration with Other Tools: Complements other tools for finding missing references and analyzing textures.

The project is actively maintained, with recent commits indicating ongoing development and support. The issues page is responsive to bug reports and feature requests. The documentation includes clear installation instructions and usage guidelines. The project has a significant number of stars and forks, suggesting a level of community interest and adoption.

Developers and project managers benefit from Dependencies Hunter by identifying and removing unused assets, leading to smaller build sizes and improved project performance. It's particularly valuable for large Unity projects where unnecessary assets can accumulate over time. This tool offers a more targeted and efficient approach to asset cleanup compared to manual searching or trial-and-error deletion.

Languages:
Summarize:
Share:
Stars
716
Forks
81
Issues
0
Created
5 years ago
Commit
25 days ago
License
MIT
Archived
No
Updated 16 days ago

Similar Repositories