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.
- Create a widget with an image and 3 buttons
- Click on one of the buttons, scroll down in the DetailsPanel and click on OnPressed
- Repeat this for all buttons and switch to your widget graph
- Drag and drop your image from the variables tab into your EventGraph. Drag the blue pin and search for SetBrushFromMaterial and connect your button
- 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)
thank you so much