Skip to content

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

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE
Unknown
LICENSE.meta
Notifications You must be signed in to change notification settings

andreimarks/Unity-UI-Rounded-Corners

 
 

Repository files navigation

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 with Image
  • Сreate new material
  • Pick RoundedCorners shader
  • Attach material to ImageWithRoundedCorners and Image
  • Profit

Separate roundness

  • Attach ImageWithIndependentRoundedCorners to gameobject with Image
  • Сreate new material
  • Pick IndependentRoundedCorners shader
  • Attach material to ImageWithIndependentRoundedCorners and Image
  • Profit

Features

Changing roundness separately or all at once

Keeps round while resizing

Better quality than sprites

Supports Unity Mask

Supports Tint

Giving back

If this project has helped you and you'd like to contribute back, you can always buy me a ☕!

About

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

Resources

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE
Unknown
LICENSE.meta

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HLSL 37.8%
  • ShaderLab 36.4%
  • C# 25.8%