Scripts Architecture Mapper – SAM


Closed scenes are opened, read and closed again, and your open scenes are untouched. ... Editor-only: nothing is added to your builds. No third-party dependencies.


by Taha A. Kreem


Price History +

See how your Unity scripts connect: an interactive dependency graph, architecture insights and shareable reports for leads and teams.
  • Unity 6000.2 or newer. Editor-only assembly; no runtime code except the optional demo scripts.
  • Maps MonoBehaviour and ScriptableObject classes inside Assets/.
  • Exports: .md, .sam.txt, .json, .csv, .mmd.
  • Settings stored in ProjectSettings/SAMSettings.asset. Light and Dark Editor themes supported.
  • Demo scene works in Built-in and URP. Documentation: Documentation/SAM User Guide.md.
  • Limitations: dependencies through interfaces, events, SendMessage or DI frameworks are not detected; scripts inside packages are not mapped.

SAM maps how the scripts in your Unity project depend on each other and shows the result as an interactive graph. Leads, producers and new team members can understand a project, find risky areas and share a report without reading the code first.

SCAN: open scenes, Build Settings scenes, a chosen list of scenes, or the entire project including prefabs. Closed scenes are opened, read and closed again, and your open scenes are untouched. Cancelable progress bar; results survive recompiles.

UNDERSTAND: one node per script, coloured by role (Manager, Gameplay, AI, UI, Input, Camera, Audio, VFX, Spawner, Items, Data). Three layouts: Group by Role, Dependency Flow, Group by Scene. Detects field references (including arrays, lists and base classes), references wired in scenes and prefabs, code usage such as GetComponent<T>(), FindFirstObjectByType<T>() and singletons (T.Instance), and inheritance. Click a script to highlight its neighbours and see what it depends on, what uses it and every GameObject it sits on. Double-click to open the script.

FIND PROBLEMS: architecture health score, circular dependencies, most depended-on and most coupled scripts, scripts not used in any scene or prefab, and missing script components.

SHARE: Markdown report with summary, findings and a Mermaid diagram; AI-ready text map for review with the assistant of your choice; JSON, CSV and Mermaid exports.

CUSTOMISE: Project Settings page shared through version control, with excluded folders, custom role keywords and per-script role overrides.

Includes a demo scene with original example scripts and full documentation. Editor-only: nothing is added to your builds. No third-party dependencies.