AsmdefOptimizer
8 tools in this family (folder Editor/Tools/AsmdefOptimizer/ in the bridge package). Effect: writes changes the project or the scene, read-only does not, destructive deletes or overwrites and the client asks before running it.
| Tool | Effect | Description |
|---|---|---|
asmdef_optimizer_add_reference | writes | Add a reference to an asmdef's references[] array. new_reference may be the assembly |
asmdef_optimizer_consolidate | destructive | Merge multiple asmdefs into one. MOVES every .cs from the source asmdefs into the deepest |
asmdef_optimizer_dependency_graph | read-only | Build the project's full asmdef dependency graph. Returns each assembly's outbound edges |
asmdef_optimizer_detect_cycles | read-only | Detect dependency cycles among project asmdefs via Tarjan's strongly-connected components |
asmdef_optimizer_detect_granularity | read-only | List asmdefs holding fewer than threshold (default 5) scripts. Tiny assemblies cost more |
asmdef_optimizer_detect_missing_refs | read-only | For each asmdef, scan its scripts for using directives that resolve to a project |
asmdef_optimizer_detect_unused_refs | read-only | For each asmdef, find references[] entries where NO using directive in the asmdef's own |
asmdef_optimizer_remove_reference | writes | Remove a reference from an asmdef's references[] array. Match is by exact string — pass |