# Rectangle (/zh-CN/api-reference/rtc/unity/class-rectangle)
> For AI agents: see the complete documentation index at [llms.txt](/llms.txt).
```csharp
public class Rectangle
{
public Rectangle()
{
}
public Rectangle(int x, int y, int width, int height)
{
this.x = x;
this.y = y;
this.width = width;
this.height = height;
}
public int x { set; get; }
public int y { set; get; }
public int width { set; get; }
public int height { set; get; }
}
```
## 属性 [#属性]
左上角的横向偏移。
左上角的纵向偏移。
目标区域的宽度。
目标区域的高度。