Skip to main content

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.

ToolEffectDescription
asmdef_optimizer_add_referencewritesAdd a reference to an asmdef's references[] array. new_reference may be the assembly
asmdef_optimizer_consolidatedestructiveMerge multiple asmdefs into one. MOVES every .cs from the source asmdefs into the deepest
asmdef_optimizer_dependency_graphread-onlyBuild the project's full asmdef dependency graph. Returns each assembly's outbound edges
asmdef_optimizer_detect_cyclesread-onlyDetect dependency cycles among project asmdefs via Tarjan's strongly-connected components
asmdef_optimizer_detect_granularityread-onlyList asmdefs holding fewer than threshold (default 5) scripts. Tiny assemblies cost more
asmdef_optimizer_detect_missing_refsread-onlyFor each asmdef, scan its scripts for using directives that resolve to a project
asmdef_optimizer_detect_unused_refsread-onlyFor each asmdef, find references[] entries where NO using directive in the asmdef's own
asmdef_optimizer_remove_referencewritesRemove a reference from an asmdef's references[] array. Match is by exact string — pass