x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Interacting with a distorted widget

Hi all,

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?

Thanks!

Product Version: UE 4.20
Tags:
more ▼

asked Sep 15 '18 at 06:19 AM in Using UE4

avatar image

MarsMiner
52 5 10 20

avatar image mightyenigma Sep 17 '18 at 12:09 AM

I am not sure why your problem is happening but when it happened to me i could fix it by enforcing that the game was running in a supported resolution (you can get a list of those during runtime from the object returned by the Get Game Settings node)

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

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.

more ▼

answered Sep 17 '18 at 01:38 AM

avatar image

CKong
874 27 18 48

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question