This has got to be very simple programming logic that I am overlooking. I have a UMG widget that functions as toggle button for a boolean variable “CustomizeMode.” When you click on the button, it toggles the mode.
In my character Blueprint, the click event triggers a Line Trace and subsequent events only if the CustomizeMode variable is true.
The problem is that the variable is set to true and the Line Trace is triggered all in the same Mouse click, resulting in the trace occurring as soon as the button is toggled.
How do I tell my character to not run its click event function if I clicked specifically on this widget or any other HUD element?
Recap: I want to click on my toggle button, then click elsewhere on the screen for my custom function.