You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
About
UI components with rounded corners embedded in their meshes for Unity