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(); })
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(); })