A game about forced loneliness, made by TACStudios
1# RectMask2D
2
3A **RectMask2D** is a masking control similar to the **Mask** control. The mask restricts the child elements to the rectangle of the parent element. Unlike the standard Mask control it has some limitations, but it also has a number of performance benefits.
4
5
6## Description
7
8A common use of a RectMask2D is to show small sections of a larger area. Using the RectMask2D to frame this area.
9
10The limitations of RectMask2D control are:
11
12- It only works in 2D space
13- It will not properly mask elements that are not coplanar
14
15The advantages of RectMask2D are:
16
17- It does not use the stencil buffer
18- No extra draw calls
19- No material changes
20- Fast performance