Awesome
UnityEventVisualizer
Now also available at the Unity asset store! (free, reviews appreciated)
<h2>What</h2> Have you ever come across a project that abuses linking <b>UnityEvents</b> in the inspector and now you can not find who is calling what? <b>Unity Event Visualizer</b> is a visual tool that allows you to see all the UnityEvents in a scene at a glance and when they are being triggered. It creates a graph in which nodes are <b>gameobjects</b>, outputs are any type of UnityEvent (custom ones supported as well!) and inputs are methods. <h2>Install</h2>Via OpenUPM
The package is available on the openupm registry. It's recommended to install it via openupm-cli.
openupm add com.mefistofiles.unity-event-visualizer
Via Git URL
Open Packages/manifest.json with your favorite text editor. Add the following line to the dependencies block.
"com.mefistofiles.unity-event-visualizer": "https://github.com/MephestoKhaan/UnityEventVisualizer.git"
Via .unitypackage
Grab the installer from the <b>Releases</b> section and import it into your project.
Via Unity asset store
Download it directly from the Unity asset store.
<h2>How</h2>-
Select
Windows/Events Graph Editor
you can open the graph. -
Select any root gameobject(s) and click on
Rebuild on selected hierarchy
to generate a graph of all events being fired by the selected hierarchy, orRebuild JUST selected
to generate a graph of all events being fired by exactly the selected gameobjects. You can deselect everything and click any of the buttons to generate the graph of the entire scene, but beware for massive graphs! -
Click on any node to highlight that <b>gameobjects</b> in your hiearchy. Alternatively right-click on any element in the hierarchy and select
UnityEventGraph/FindThis
to highlight it in the graph. OrUnityEventGraph/Graph Just This
andUnityEventGraph/Graph This Hierarchy
in order to create a graph starting just in this gameobject or any of its children respectively. -
Scene View https://www.youtube.com/watch?v=IhG0LRFLmdo.
Pull requests welcome!
<h2>Who</h2>- Original idea by SoylentGraham
- Code by Luca Mefisto (myself)
- Inspired by Keijiro Takahashi
- SceneView representation by Andrés Leone