SynapseGraph is a high-performance source code architecture analysis toolset designed specifically for Unity developers. It bridges the gap between complex codebases and visual understanding by mapping class relationships into an interactive neural-style graph.
unity-tool: A Unity Package (UPM) that performs static analysis on your C# scripts using Roslyn AST and exports structured data to JSON.web-visualizer: A lightweight, web-based dashboard that renders the exported JSON into a dynamic, force-directed neural network graph.
- Deep Semantic Analysis: Powered by Microsoft Roslyn, it analyzes method calls, field types, and property assignments within the method bodies, ignoring comments and string literals for 100% accuracy.
- Modular Pipeline: Built with an extensible processor architecture (Basic Info, Reflection-based Members, and Roslyn AST).
- Unity Editor Integration: Features a user-friendly editor window with drag-and-drop support for target folders.
- High-Speed Visualization: Web-based renderer capable of handling complex projects with hundreds of interconnected nodes.
- In Unity, open Window > Package Manager.
- Click + > Add package from git URL....
- Paste:
https://github.com/huuthao198/SynapseGraph.git?path=/unity-tool
- Download the
com.gaconstudio.synapsegraph-1.0.0.tgzfrom the Releases page. - In Unity Package Manager, click + > Add package from tarball....
- Select the downloaded file.
You can access the online visualizer here: 👉 https://huuthao198.github.io/SynapseGraph/
- Open the tool in Unity: Tools > SynapseGraph > Export Architecture.
- Drag and drop your script folders into the Target Folders list.
- Click SCAN & EXPORT.
- Locate the generated JSON in
Assets/SynapseData/. - Upload the JSON file to the Web Visualizer to see your code's "neural network".
- Author: GaconStudio
- Email: huuthao198@gmail.com
- License: MIT