@codegraphy-dev/plugin-unity
v0.2.3
Published
CodeGraphy Unity plugin
Maintainers
Readme
CodeGraphy Unity
Adds Unity project structure analysis to CodeGraphy.
- Package:
@codegraphy-dev/plugin-unity - Plugin API:
@codegraphy-dev/plugin-api
Install
Install @codegraphy-dev/core first if the codegraphy CLI is not already available.
npm i -g @codegraphy-dev/plugin-unity
codegraphy plugins register @codegraphy-dev/plugin-unity
codegraphy plugins enable @codegraphy-dev/plugin-unity
codegraphy indexDetection coverage
.unityscene files stay visible as file nodes and emit GameObject and Component Symbol Nodes..prefabfiles stay visible as file nodes and emit GameObject and Component Symbol Nodes.- MonoBehaviour components resolve their C# script names through Unity
.metaGUID files when those files are present in the workspace. - Unity containment emits
containsedges from the scene or prefab file node to GameObject, and from GameObject to Component. - MonoBehaviour script references emit
referenceedges to the resolved C# script file. - Unity asset references use the standard
referenceedge row for resolved scripts, prefab instances, and serialized asset fields. - Unity persistent calls use the standard
eventedge row for serialized scene and prefab event bindings to C# methods. - Unity file groups ship icon-backed defaults for scenes, prefabs, serialized assets, materials, assembly definitions, and input actions.
- Unity generated folders and IDE/build artifacts are filtered by default, including
Library,Temp,Logs,ProjectSettings,UserSettings,.meta, generated project files, and common build outputs.
The plugin does not depend on the Unity Editor. It reads Unity's text-serialized YAML and .meta files directly.
Graph Scope
The Unity plugin contributes a Unity Graph Scope group with these rows:
- GameObject
- Component
These rows are disabled by default and appear when the Unity plugin is applicable to the indexed workspace. Scenes and prefabs use their normal file nodes rather than duplicate Unity-specific symbol rows.
Turning the Unity plugin off removes these Unity-specific rows, plugin default filters, plugin nodes, and Unity-sourced edges from the graph. Core C# analysis still runs for .cs files, including MonoBehaviour scripts, so normal C# symbols and relationships remain available without the Unity plugin.
Unity contributes the core event edge row when the plugin is enabled. Toggle Events on to inspect serialized callbacks such as Button.onClick or custom UnityEvent fields that invoke methods without a normal C# call site.
