找回密码
 立即注册
搜索

[编辑器/功能拓展] Selection Utility 1.2显示场景物体的层级结构插件

[复制链接]
155 |0
发表于 2023-2-7 11:56:34 | 显示全部楼层 |阅读模式










The Selection Utility is a lightweight Unity tool that facilitates selecting GameObjects in the Scene view by displaying a context menu with all objects currently under the mouse cursor as a popup list.


Features
• Works with 3D, 2D, and UI objects
• Highlights hovered 3D and 2D objects with a colored outline (only the builtin render pipeline is supported for now).
• Scrollable list, can handle hundreds of entries
• Does not interfere with regular scene controls (camera pan, zoom, etc)
• Respects Unity's builtin selection features (e.g. locked layers)
• Search by name or component type
• Filter toggles to show only 3D, 2D, or UI objects
• Component icons to identify objects easily
• Prefabs are indicated in blue
• Looks good in Unity's light and dark skin
• Source code included
• Customize the filter tabs: add, remove or replace the filtering with a simple API call

User Preferences
• Hide icons by their type (e.g. Transform)
• Global enabled flag
• Click dead zone (e.g. touchpad & accessibility)
• Search field toggle
• Toggle filter toolbar
• Configure outline color

Why do I need this?
This tool improves the default selection methods in Unity. Trying to find a GameObject in a long list within the Hierarchy window can be difficult, since names may not be perfectly descriptive for all use-cases (e.g. props are named Rock_00, Rock_01, etc). Often, it is easier to find objects by their position and context in the Scene view. However, since Unity also considers invisible and overlapping objects, it can require many clicks until the desired target is selected. With Selection Utility the same can be accomplished in typically two clicks, but it also supports a search within the spatial context of the mouse pointer.


选择工具是一个轻量级的Unity工具,通过显示当前鼠标光标下所有对象的上下文菜单作为弹出列表来方便在场景视图中选择游戏对象。


特性
•使用3D, 2D和UI对象
•高光悬停的3D和2D对象与彩色轮廓(目前只支持内置渲染管道)。
•可滚动列表,可处理数百个条目
•不干扰常规场景控制(相机平移,变焦等)
•尊重Unity内置的选择功能(例如锁定层)
•按名称或组件类型搜索
•过滤器切换,只显示3D, 2D或UI对象
•组件图标轻松识别对象
•预制件以蓝色表示
•Unity的浅色和深色皮肤看起来都不错
•包含源代码
•自定义过滤器选项卡:添加,删除或替换过滤与一个简单的API调用

用户首选项
•隐藏图标的类型(例如转换)
•全局启用标志
•点击盲区(如触摸板和辅助功能)
•搜索字段切换
•切换过滤器工具栏
•配置轮廓颜色

我为什么需要这个?
这个工具改进了Unity中的默认选择方法。试图在Hierarchy窗口的长列表中找到一个游戏对象是很困难的,因为名称可能无法完美地描述所有用例(例如,道具名为Rock_00, Rock_01等)。通常,通过场景视图中的位置和上下文来查找对象更容易。然而,由于Unity也考虑不可见和重叠的对象,它可能需要多次单击,直到选定所需的目标。使用Selection Utility可以在通常的两次单击中完成同样的工作,但它还支持在鼠标指针的空间上下文中进行搜索。





回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表