
Add rounded corners to your RectMask2D. Ideal for cards, rounded UIs, etc...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.LimitationsAs 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.Works in replacement of Unity's RectMask2D. Dosen't have any specific technical details.