Vietnamkirevdokimov/Unity-UI-Rounded-Corners
These components and shaders allow you to add rounded corners to UI elements!
Featured achievements
The project's latest awards
#1 Repository of the week
#1 Repository of the week
#1 Repository of the week
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

Similar Projects
Discover other similar projects and AI models.
A very simple toon lit shader example, for you to learn writing custom lit shader in Unity URP
.NET Decompiler with support for PDB generation, ReadyToRun, Metadata (&more) - cross-platform!
UIEffect is an open-source package that allows you to intuitively apply rich UI effects directly from the Inspector or via code. Combine various filters, such as grayscale, blur, and dissolve, to decorate your UI with a unique visual style!
Entitas is a super fast Entity Component System (ECS) Framework specifically made for C# and Unity