Unity-UI-Rounded-Corners
These components and shaders allows you to add rounded corners to UI elements!
How to install
Package Manager
- Open
%projectname%/Packages/manifest.json
- Add following to dependencies section:
"com.nobi.roundedcorners": "https://github.com/kirevdokimov/Unity-UI-Rounded-Corners.git"
Unity Package
Get .unitypackage
from releases
How to use
Same roundness
- Attach
ImageWithRoundedCorners
to gameobject withImage
- Сreate new material
- Pick
RoundedCorners
shader - Attach material to
ImageWithRoundedCorners
andImage
- Profit
Separate roundness
- Attach
ImageWithIndependentRoundedCorners
to gameobject withImage
- Сreate new material
- Pick
IndependentRoundedCorners
shader - Attach material to
ImageWithIndependentRoundedCorners
andImage
- Profit