项目
在 GitHub 查看
kirevdokimov/Unity-UI-Rounded-Corners
关于
这些组件和着色器可以为 UI 元素添加圆角!
游戏与模拟器实测星标增长
- 24小时
- -1
- 7天
- 0
- 15天
- +2
- 1个月
- +3
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Unity-UI-Rounded-Corners
These components and shaders allow you to add rounded corners to UI elements!

How to install
Option 1: Package Manager (Unity 2019.3 and higher)
URL to copypaste:
https://github.com/kirevdokimov/Unity-UI-Rounded-Corners.git
Option 2: Package Manager (Manual)
- Open
%projectname%/Packages/manifest.json - Add the following to the dependencies section:
"com.nobi.roundedcorners": "https://github.com/kirevdokimov/Unity-UI-Rounded-Corners.git"
How to use
Symmetrical roundness
- Add
ImageWithRoundedCornerscomponent to a GameObject with anImage - Adjust
Radiusproperty
Certain roundness value for each corner
- Add
ImageWithIndependentRoundedCornersto a GameObject with anImage - Adjust
rVector4 property. Each vector component represent radius, clockwise, starting with top-left corner
Important thing
If you need to add or change the image at runtime, call Validate() and then Refresh() to update the materials.
Features
Changing roundness separately or all at once

Keeps round while resizing

Better quality than sprites

Supports Unity Mask

Supports Tint

探索相关项目
加载中…