一个可以令场景中所有事件一目了然的图形化编辑器。
GitHub 上的工程多如繁星,有些好的仓库,但凡不经意间错过了就很难找回,故稍作采撷,希望能帮助到有心人。
简介:
笔者今天推荐的仓库叫 UnityEventVisualizer。 - Unity 事件可视化工具。
Have you ever come across a project that abuses linking UnityEvents in the inspector and now you can not find who is calling what? Unity Event Visualizer 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 gameobjects, outputs are any type of UnityEvent (custom ones supported as well!) and inputs are methods.
- 你有没有遇到过这样一个项目,它的Inspector 上面的事件连的乱成一锅粥,你根本分不清谁调用了谁?于是 Unity Event Visualizer - Unity 事件可视化工具闪亮登场,它允许你一目了然的看到场景中的所有事件,以及它们何时被触发。它创建了一个图形界面,以 GameObect为节点,OutPut是任何类型的 UnityEvent (也支持自定义的UnityEvnet),而节点 Input 则为那些事件绑定的方法了
功能:
- 在 Graph 视窗中可视化观察 UnityEvent 的订阅关系与触发时机。
使用:
Grab the installer from the Releases section and import it into your project. Works in Unity 5.6+
- 从GitHub “Releases” 页面下载并导入,支持版本为 Unity 5.6+-
Select
Windows/Events Graph Editor
you can open the graph.
- 从菜单Windows/Events Graph Editor
开启图形界面。
-
Click on any node to highlight that gameobjects in your hierarchy. Alternatively right-click on any element in the hierarchy and select
UnityEventGraph/FindThis
to highlight it in the graph.
- 单击 Graph 上任一节点高亮 Hierarchy中的 gameobjects ,或者对 Hierarchy 中任一元素右键并选择 “UnityEventGraph/FindThis
”将其在Graph中高亮出来
演示:
链接:
MephestoKhaan/UnityEventVisualizer: A graph editor for viewing all UnityEvents at a glance
结语:
- 可视化编程的体验应用在这个 UnityEvent 上的 Idea 简直不要太酷了。
- 转载请注明出处,谢谢~
本文集持续更新ing,喜欢记得点赞关注哦!