Question regarding UMG Buttons.

Greetings,

I’ve been working on a small Dice-Rolling app for mobile phones, and I have what I hope is a question that can be easily answered. Essentially I have 6 UMG buttons (displayed as images of dice) that appear on the screen. When the user clicks(taps) the button, it changes was type of dice will be spawned when they click(tap) on the screen.

The problem I’ve encountered is that after the user has selected a dice type by pressing on one of the buttons, when they go to press on another button a dice of the previously selected type spawns (so it’s essentially going ‘spawn dice at hit position -> change dice type’). Is there a way to change the button interaction so it blocks out all other interactions except for the ‘on clicked’ event specific to that button?


Screenshot 1: Game starts.


Screenshot 2: User selects “Six Sided Dice” and spawns a couple.

29fa8795fb38e6fe393a84dc8a4316116efdfc3c.jpeg
Screenshot 3: User then selects “Twenty Sided Dice”, but a Six Sided Dice also spawns underneath the Twenty Sided button.

I hope that makes enough sense!