Plush

ClipRect2D#

PlushEngine · Type index

Namespace: PlushEngine

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#

PropertyTypeAccessConstructor default
Widthfloatget; init;required
Heightfloatget; init;required

Source#