Rounded Corners
Create Unity UI graphics with rounded corners directly in their meshes. RoundedRect, RoundedTexture, and RoundedImage components eliminate the need for extra textures or masks to achieve rounded corner effects at any size. Features independent corner radius configurations, custom material support, mesh modifier compatibility, and automatic sprite UV handling.
com.gilzoide.rounded-corners Unity Compatibility

Install via UPM
Add to Unity Package Manager using this URL
https://www.pkglnk.dev/rounded-corners.git README Markdown
Copy this to your project's README.md
## Installation
Add **Rounded Corners** to your Unity project via Package Manager:
1. Open **Window > Package Manager**
2. Click **+** > **Add package from git URL**
3. Enter:
```
https://www.pkglnk.dev/rounded-corners.git
```
[](https://www.pkglnk.dev/pkg/rounded-corners)README
Rounded Corners
Unity UI MaskableGraphic components with rounded corners embedded in their meshes.
Since the rounded shape is in the mesh, you don't need to add extra textures for rounded rectangles of any size in your project. You can also make rounded cuts to textures/sprites without using masks.
Features
- Independent configurations for radius and number of triangles generated per corner.
- Supports custom materials and masking. Rounded corners are embedded in the generated meshes, so the components don't mess with your materials at all.
- Supports mesh modifiers, like Outline and Shadow.
How to install
This package is available on the openupm registry and can be installed using the openupm-cli:
openupm add com.gilzoide.rounded-corners
Otherwise, you can install directly using the Unity Package Manager with the following URL:
https://github.com/gilzoide/unity-rounded-corners.git#1.0.0
Or you can clone this repository or download a snapshot of it directly inside your project's Assets or Packages folder.
Components:
- RoundedRect: colored rectangle with rounded corners.
- RoundedTexture: texture with rounded corners and configurable UV.
- RoundedImage: sprite with rounded corners. UVs are automatically fetched from sprite data. For now only simple filling is supported, no slicing nor tiling.
Samples
This project comes with a sample scene that shows Rounded Corners features.
Comments
No comments yet. Be the first!
Sign in to join the conversation
Sign In