Interacting with a distorted widget
I recently made an effect material to distort my widget slightly, and I applied it through a retainer box. My hierarchy was like this:
Canvas Panel - Retainer Box with Effect - Canvas Panel - All my other widgets.
The problem is when I run my game events like Mouse Hover and Mouse Click are all out of line with my widgets. So if I have a button with a mouse hover event, I might hover my mouse underneath it and it would activate, or I might hover my mouse on it and nothing happens. Basically, the hitboxes for the buttons are not being affected by the distortion like everything else.
What can I do to fix this?
asked Sep 15 '18 at 06:19 AM in Using UE4
Try add a boarder, set it's alpha to 0 and tried to interact with it instead? You can tried to set it up like this:
Canvas Panel - (Retainer Box with Effect + Border) - Canvas Panel - All my other widgets.
Set the border to the same size as the retainer box, then tried to fired up event when your cursor hovered above the border.
answered Sep 17 '18 at 01:38 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here