How to disable button after it is clicked


i want to disable button once it used as there is a button watch ad and respawn i want to player to use it once only i wanna disable it after use so if the character died again the player should not use it again.

Well I’m a complete noob and this may sound stupid, but is it possible to have that button as its own widget layed on the same zorder as the other buttons and set up it’s visibility to hidden after the on pressed event? Probably not the best way even if it works, but an idea I guess

UButton::SetIsEnabled()

You can:

  • enable / disable any widget
  • set visibility to non hit-testable
  • change zOrder

Try Set Visibility - the button will still show but be non-interactive and you can style your way. Seems like the most natural way.

2 Likes

thanks that worked