study/first_study/Library/PackageCache/com.unity.ugui@1890c14c96ff/Documentation~/script-RectMask2D.md
jh04010421 739d49f1a0 Unity | 2026.01.20
수업 실습 파일
2026-01-20 11:01:57 +09:00

21 lines
671 B
Markdown

# RectMask2D
A **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.
## Description
A common use of a RectMask2D is to show small sections of a larger area. Using the RectMask2D to frame this area.
The limitations of RectMask2D control are:
- It only works in 2D space
- It will not properly mask elements that are not coplanar
The advantages of RectMask2D are:
- It does not use the stencil buffer
- No extra draw calls
- No material changes
- Fast performance