一个非常棒的 Idea,为 Unity 编辑器引入 收藏夹/快捷方式 概念...
GitHub 上的工程多如繁星,有些好的仓库,但凡不经意间错过了就很难找回,故稍作采撷,希望能帮助到有心人。
简介:
笔者今天推荐的仓库叫 Favourites。 - UnityEditor 收藏夹
使用它可以将 “Hierarchy” 或 “Project” 面板中的对象拖放到其中进行收藏,支持使用 TreeView 进行分组。
使用:
- The panel can be opened from menu:
Window > Favourites.
从Window > Favourites唤出本收藏夹 - Use the [+] button in the Favourites panel's toolbar to add a new category.
点击界面上的 【+】按钮新增一个分类 - Use the [-] button to remove the selected category and all its items or to remove a single selected item.
点击界面上的 【-】按钮移除一个分类及其每一个子项,或者仅仅移除选中的子项 - Double-click on an item to open it. For example to open a scene you have added to Favourites.
双击一个子项以开启,比如双击收藏的场景就能开启这个场景 - Right-click to ping a Favourites item in the Hierarchy or Project panel.
对着收藏的子项点右键可以将这个对象在 Hierarchy 或者 Project 窗口高亮显示出来 - Drag-and-drop items to new categories or other areas of Unity. You can for example drag-and-drop a
Sprite from the Favourites panel into the property of a component's Inspector (if that property accept Sprites).
支持通过将收藏夹中的对象拖到Unity 的其他视窗/Tab 中,比如拖到 Inspector 的变量中
Tips:
- 对于场景中的收藏对象,如果场景关闭了,收藏夹中的内容会被隐藏,直到下次打开这个场景且该游戏对象还存在。
- 此工具为编辑器工具。
链接:
plyoung/Favourites: Unity Favourites Panel
结语:
这个收藏夹的脑洞开的很好,为了实现收藏Project 和 Hierarchy 的东西,像这种做资源整合的用到的知识点必然不会少,有兴趣的可以深入源码读一读。
扩展阅读:
akof1314/UnityVirtualFolder: Unity VirtualFolder
- 这个也是一个类似于收藏夹/快捷方式的工具,只是由于各个作者的出发点原因,笔者看来功能上不及本文推荐的这个,当然学习或者直接使用也是极好的。
本文集持续更新ing,喜欢记得点赞关注哦!











网友评论