← API Reference Struct

asge::game::components::UIRect

A rectangular footprint for a UI widget.

#include <Common.hpp>

m_Size is authored in the same units as Transform; the owning entity's Transform positions it (top-left, same convention as Sprite). Purely geometric RenderSystem reads it to compute a draw/hit-test rect (see RectFromSize), but drawing a fill color or reacting to the pointer needs a sibling UIButton/Interactable too.

Public Attributes

#math::Float2 m_Size {80.0f, 24.0f}