UnrealScripterAI
Discord ↗
Link Copied to Clipboard
×
"display and hide texture on button click"
// Called when the button is clicked void UMyButton::OnClicked() { Super::OnClicked(); // Toggle the visibility of the texture if (MyTexture->Visibility == ESlateVisibility::Visible) { MyTexture->SetVisibility(ESlateVisibility::Hidden); } else { MyTexture->SetVisibility(ESlateVisibility::Visible); } }