← API Reference Struct

asge::game::components::Interactable

Generic pointer-interaction state for a UI widget with a UIRect footprint.

#include <Common.hpp>

m_Hovered/m_Held/m_Clicked are recomputed every frame by systems::UIInteractionSystem from resources::UIHitList (see their own doc comments) not something a scene file describes. m_Clicked is edge-triggered: true only on the frame a press completes (released while still hovered), false every other frame. m_Enabled opts a widget out of hit-testing entirely (and forces m_Hovered/m_Held false) without removing the component, e.g. to gray out a button.

Public Attributes

#bool m_Enabled {true}
#bool m_Hovered { false }
#bool m_Held { false }
#bool m_Clicked { false }