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"

Widget Components Hidden in Game still interacts with invisible state

Hi, I'm using recent UE4.18.2, and made some actor which have a widget component as a member.

I want these actor set hide completely, so conducted "Set Actor Hidden in Game" and also conducted "Set Hidden in Game" blueprint function for its widget component. alt text As a result, The Actor is not seen, but still the widget component blocks the interaction. [On hovered] event and [On Clicked] event still operates though they are not seen.

How can I solve this? I wanna completely disable these widget components.

Some kind of guess I'm thinking of : Widget Component (IconPopUpImage) has "event dispatcher", and the owner Actor (IconPopUpImageVideo) bind event to it at BeginPlay. Is this can be a problem?

Product Version: UE 4.18
Tags:
more ▼

asked Dec 14 '17 at 07:09 AM in Bug Reports

avatar image

olim_simon
8 5 6

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

Get the Component -> GetUserWidgetObject -> SetHidden.

This will force the 2d widget embedded in the component to become non-interactive. Untested but could/should work.

more ▼

answered Dec 14 '17 at 08:13 AM

avatar image

Everynone
12.5k 71 24 51

avatar image olim_simon Dec 14 '17 at 08:40 AM

Thanks for the comment. In blue prints there is no SetHidden function allowed for this, but Set Is Enabled I tried. But it seems does not work-

avatar image Everynone Dec 14 '17 at 09:06 AM

Like this:

alt text

capture.png (36.9 kB)
avatar image olim_simon Dec 14 '17 at 10:30 AM

Thank you very much- It works!!! The widget component become non-active. Additionally, when i need to reactivate it, set visibility of super component should be called first and then widget component's. Thanks !!!!!!!alt text

(comments are locked)
10|2000 characters needed characters left
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