Unity UI Rounded Corners Save

This components and shaders allows you to add rounded corners to UI elements!

Project README

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 ImageWithRoundedCorners component to a GameObject with an Image
  • Adjust Radius property

Certain roundness value for each corner

  • Add ImageWithIndependentRoundedCorners to a GameObject with an Image
  • Adjust r Vector4 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

Open Source Agenda is not affiliated with "Unity UI Rounded Corners" Project. README Source: kirevdokimov/Unity-UI-Rounded-Corners
Stars
1,186
Open Issues
21
Last Commit
4 days ago
License
MIT

Open Source Agenda Badge

Open Source Agenda Rating