Skip to main content

HudRect

Provides properties and functions to interact with a rectangle in the HUD.

Properties

id

Gets the unique identifier (ID) for the button. This property is read-only.

position

Gets or sets the position (Vector2).

anchor

Gets or sets the position anchor (Vector2).

pivot

Gets or sets the pivot (Vector2).

fontSize

Gets or sets the size of the font.

foregroundColor

Gets or sets the Color of the foreground.

backgroundColor

Gets or sets the Color of the background.

borderColor

Gets or sets the Color of the border.

textColor

Gets or sets the Color of the text.

borderRounded

Gets or sets a boolean that controls whether the border is rounded.

text

Gets or sets the text content.