Rounded Rect Mask 2D View on Asset Store (opens in new tab)

Package details

Latest version
1.0
Last updated
First released
Unity version
2021.3.45 or later
Package size
615 KB
Files
13
Favorites
12
Views in the past week
19

Price tracking

Last checked
Tracked since
Lowest recorded
Free on

Keywords

Rounded Rect Mask 2D

by Antoine Cherel (opens in new tab)

4.3 / 5 · 3 ratings

Ratings by stars
Number of ratings for each star rating
5 stars 2
4 stars 0
3 stars 1
2 stars 0
1 star 0

Add rounded corners to your RectMask2D. Ideal for cards, rounded UIs, etc...

Price Free

Get it free on Asset Store (opens in new tab)

Affiliate link · Purchases support this site

Price history

Last 6 months

USD
Price history for Rounded Rect Mask 2D, 6 months Current Free; lowest Free; highest Free in this period. $0 Jun Jul Aug Sep Oct Nov

Asset preview

1 / 2

Rounded Rect Mask 2D screenshot 1

Rounded Rect Mask 2D screenshot 1

About this asset

This component is to be used in place of a RectMask2D, where you need rounded corners.

Corners can be all the same width or independant from one another.

This works for UI components and for the default TextMeshPro text's shader.

Documentation can be found here.

Limitations

  • As Rounded RectMask2D uses a special UI shader to work, it can only be used with normal UI (ie: Images with no special material). If you have custom UI shaders for your UI you will need to tweak them to support the RoundedRectMask2D component (otherwise the corners will not be correctly clipped).
  • Moreover, you will need one Material per corners configuration. If you always use the same values, you can use one Material for all of your UI, but otherwise, RoundedRectMask2D can auto instantiate your materials at runtime, allowing you to have any mask values.
  • Softness doesn't work with RoundedRectMask2D. If you need softness in your mask, you will have to use both RoundedRectMask2D & a regular RectMask2D nested into each other.

From the publisher's Asset Store listing.

Technical details

Works in replacement of Unity's RectMask2D. Dosen't have any specific technical details.

Compatibility

Render pipelines supported in each Unity version
Unity version Built-in URP HDRP Custom
2021.3.45f1 Compatible Compatible Compatible Compatible

As listed on the Asset Store.