找回密码
 立即注册
搜索

[编辑器/功能拓展] Better UI 2.4 UI功能拓展插件

[复制链接]
127 |0
发表于 2023-3-1 11:13:46 | 显示全部楼层 |阅读模式
























Onboarding
A setup wizard helps you setting up Better UI for your project correctly.

Resolution Independence
Create UIs working on any resolution. Use the Snap Anchors tool to easily set up the anchors correctly. Use the "Make Better" workflow to convert your components to their "Better UI" version. Variables which contain sizes of the object (like font size) are resized with the resolution - and you have full control over the way it adjusts such size values.

Responsive Design
Define orientations (Landscape / Portrait), screen size ranges, aspect ratio ranges and / or special screen types (like touch screen) you want to support. You can have different positions and sizes or certain values of your UI elements for each defined screen configuration. A smart fallback logic allows you to leave out screen configuration settings in your elements to keep your effort at a minimum.

Optimized Workflow
With the Make Better workflow you can convert UGUI components to their "Better" pendants with two clicks. References to these components are converted as well. So, it just works without worries.

Several tools are a great help to make a great UI.

The Snap Anchors tool converts constant positions and sizes into relative anchor positions. You can do that for as many elements as you select with one click.

The Smart Parent tool allows you to move an object while leaving its childs on their visual position. Also allows to snap the parent to the bounds of its childs.

The Align & Distribute tool helps you moving your UI elements to the right position.

The Pick Resolution tool let you change the resolution of your game window with a single click. It also allows to simulate certain screen configurations for previewing your responsive design.

Better Transitions
Instead of defining only one transition per selectable, you can define as many transitions as you like and affect any object in the hierarchy. In addition to the normal transition types there are also some special transition types.

The "Better Toggle" has additional transition options for changing between the on and off state. With this and the special "Object Activeness Transition" you can easily create things like tabs.

Dynamic UI
Create animations easily with the straight forward Location Animations component. Control the anchors of your objects by objects somewhere else in your Hierarchy with the Anchor Override (which can also be animated). This enables you to prevent moving objects with their mask. Resize your element variables based on the size of a parented object instead of the screen with the Override Screen Properties component.

Extra Options
Some components can do a lot more than the original UGUI components.

The Better Image allows to make horizontal or vertical gradients. There are also some pre-defined Materials like Greyscale or Hue Saturation Brightness. These are optimized for extensive use and can be changed via transitions (the Better Raw Image has similar options).

The Better Content Size Fitter allows you to define a minimum or maximum size as well as a padding added to the size. It also has the option to check the size of another (child) object in the hierarchy istead of itself. All this is of course resolution independant and ready for responsive design.

Text Mesh Pro Suppot
All UGUI components of text mesh pro (TMP UGUI, TMP Input Field, TMP Dropdown) have "Better" versions. They are included as a package. So, you can simply extract it if you are using TextMesh Pro..

Support
If you don't know how to start, you can check out the documentation. If you have additional questions or experience unexpected behavior, feel free to leave a comment in the forum post. Of course, you can also try to understand the code behind by checking out the source code. It is included in this package.


新员工培训
安装向导可以帮助您正确地为项目设置更好的UI。

独立解决
创建在任何分辨率下工作的ui。使用Snap Anchors工具轻松地设置正确的锚。使用“Make Better”工作流将组件转换为“Better UI”版本。包含对象大小的变量(比如字体大小)会随着分辨率而调整大小——你可以完全控制它调整这些大小值的方式。

响应设计
定义你想要支持的方向(横向/纵向),屏幕大小范围,纵横比范围和/或特殊屏幕类型(如触摸屏)。对于每个定义的屏幕配置,您可以拥有不同的位置和大小,或者UI元素的特定值。聪明的回退逻辑允许您在元素中省略屏幕配置设置,以使您的工作量最小化。

优化工作流程
使用Make Better工作流,您可以通过两次单击将UGUI组件转换为“Better”挂坠。对这些组件的引用也会被转换。所以,它可以毫无顾虑地工作。

有几个工具对制作优秀的UI有很大帮助。

Snap Anchors工具将固定的位置和大小转换为相对的锚定位置。您可以为您选择的任意多个元素执行此操作,只需单击一次。

智能父工具允许您移动一个对象,同时将其子对象留在其视觉位置上。也允许将父对象的边界调整到子对象的边界。

对齐和分布工具可以帮助你移动你的UI元素到正确的位置。

选择分辨率工具,让你改变你的游戏窗口的分辨率与一个单一的点击。它还允许模拟某些屏幕配置,以预览响应式设计。

更好的过渡
您可以根据需要定义任意数量的转换,从而影响层次结构中的任何对象,而不是每个可选择对象只定义一个转换。除了正常的转换类型外,还有一些特殊的转换类型。

“更好的切换”有额外的转换选项,可以在打开和关闭状态之间进行切换。有了这个和特殊的“对象活跃度转换”,你可以很容易地创建像标签这样的东西。

动态UI
使用直接的位置动画组件轻松创建动画。使用锚覆盖(也可以是动画)通过层次结构中其他地方的对象控制对象的锚。这使你能够阻止移动对象的蒙版。使用Override screen Properties组件根据父对象(而不是屏幕)的大小调整元素变量的大小。

额外的选项
一些组件可以比原始UGUI组件做更多的事情。

Better Image允许制作水平或垂直渐变。还有一些预定义的材质,如灰度或色相饱和度亮度。这些都是为广泛使用而优化的,并且可以通过过渡进行更改(更好的原始图像有类似的选项)。

更好的内容大小钳工允许您定义一个最小或最大的大小,以及填充添加到大小。它还可以选择检查层次结构中另一个(子)对象的大小,而不是检查它本身。当然,所有这些都与分辨率无关,并为响应式设计做好了准备。

文本网格Pro支持
文本网格pro的所有UGUI组件(TMP UGUI, TMP Input Field, TMP Dropdown)都有“更好”的版本。它们是打包的。所以,你可以简单地提取它,如果你使用TextMesh Pro..

支持
如果您不知道如何开始,您可以查看文档。如果您有其他问题或遇到意想不到的行为,请在论坛帖子中留下评论。当然,您也可以通过检查源代码来尝试理解背后的代码。它包含在这个包里。





回复

使用道具 举报

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

本版积分规则

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