How to change a picture in a widget.

  1. Create a widget with an image and 3 buttons

  1. Click on one of the buttons, scroll down in the DetailsPanel and click on OnPressed

  1. Repeat this for all buttons and switch to your widget graph
  2. Drag and drop your image from the variables tab into your EventGraph. Drag the blue pin and search for SetBrushFromMaterial and connect your button

  1. To test this, I added the following in my LevelBlueprint (if you have a PlayerCharacter, add it there and use AddToViewport instead of AddToPlayerScreen, but try it out)

Hey guys, I don’t know English very well, so I’m sorry if there are mistakes.
I want to make it so that when you click on one of the 3 buttons, you have one widget, but the picture depends on the button that you clicked. I tried to do this for an hour, but nothing came of it.
I would be very grateful if someone could help.

thank you so much