graphics.rect_filled

Draw a filled screen-space rectangle.

Syntax

ue.graphics.rect_filled(
    x: number,
    y: number,
    width: number,
    height: number,
    color?: integer | table,
    rounding?: number,
    options?: table
)

Parameters

ParameterTypeDescription
x, ynumberTop-left screen position in pixels.
width, heightnumberRectangle size in pixels.
color`integertable?`
roundingnumber?Corner rounding. Default: 0. Range: 0–256.
optionstable?Supports layer = "foreground".

Example

ue.graphics.rect_filled(20, 20, 160, 40, { 0, 0, 0, 180 }, 6)

On this page