UMG Simulate Button States and Click

Turned out, it wasn’t needed. Who should believe function parameters. They weren’t needed. I passed in null.

I’ll leave this here, sure someone else wants to set and unset hovered state.

void USimButton::SimulationHover(bool newHover)
{
FPointerEvent ptrEvent;

if (newHover)
{
	MyButton->OnMouseEnter(NullGeometry, ptrEvent);
}
else
{
	MyButton->OnMouseLeave(ptrEvent);
}

}

1 Like