The Safe Cleaner
Nexus Graph includes a powerful Project Cleaning workflow integrated into the Dependency Graph.
Location: Tools -> Nexus Graph -> Open Architect Guard -> Toolbar: Find Unused
The “Safe Move” Philosophy
Many cleaning tools delete assets immediately based on a scan. If the scan has a false positive (e.g., an asset used via Reflection strings), the asset is lost forever.
Nexus Graph adopts a Safe Move protocol:
- Identify: Find assets with 0 Inbound References.
- Isolate: Move them to a distinct folder (
Assets/_Unused_Junk). - Verify: The user can run the project. If nothing breaks, the folder can be deleted safely.
- Restore: If something breaks, simply move the asset back.
Cleaning Workflow
1. Refresh Graph
Always click Refresh Graph before cleaning to ensure the latest cache is active.
2. Find Unused
Click the broom icon/button in the toolbar. The tool filters out:
- Scene Files (Always roots)
- Resources (Implicitly used)
- Addressables (Explicitly roots)
3. Review & Move
A dialog lists the candidates for deletion and their total size (e.g., “50MB of unused assets found”). Select Safe Move to create the _Unused_Junk folder and migrate the files.
Pro Tip: Use this in conjunction with the Build Size Treemap to identify large unused assets first.