Slate Button OnClicked_Lambda

You need to return the type FReply, eg FReply::Handled();

SNew(SButton).OnClicked_Lambda([]()->FReply{ GEngine->AddOnScreenDebugMessage(-1, 5.f, FColor::Red, TEXT("Button Clicked!")); return FReply::Handled(); })
1 Like