ClipRect2D#
A Clip 2D component: a rectangle of Width × Height local units centred on the object. The object's own sprite, shape or text and everything under it draw only inside it (a panel, a scroll list, a health bar's fill). The clip is the rectangle's screen bounds, so a rotated clip clips to its bounding box.
public readonly record struct ClipRect2D(float Width, float Height)Record properties#
| Property | Type | Access | Constructor default |
|---|---|---|---|
Width | float | get; init; | required |
Height | float | get; init; | required |
Source#
- RuntimeWorld.cs