Invisible Widget Components aren't hidden from Widget Interaction Component visibility trace

Hello, I’m having a problem where setting turning off the visibility of the Widget Component in an Actor doesn’t remove the component from being “seen” by the Widget Interaction Component (attached to a motion controller).

To reproduce:

  1. Create a new actor.
  2. Add a new Widget Component to that actor, and assign it a UMG class of some UI.
  3. Set the Widget Component’s Collision preset to UI.
  4. Set the Widget Component’s visibility to false/invisible.
  5. If you don’t have a pawn already, create one and add a Widget Interaction Component to it. In my case this was a motion controller with Trace Channel set to Visibility.
  6. Place the actor in a level near the player.
  7. If you point the Motion Controller Component (or presumably a mouse) over the invisible object, the Widget Interaction Component will act as if the Widget is visible. If you layer Widgets in space, you can block visible Widgets with invisible Widgets in front of them.

I have an image of this happening:

You can see the Interaction Component reacting to the invisible UMG.

Hello rmcmurra,

I was able to reproduce this issue on our end. I have written up a report and I have submitted it to the developers for further consideration. I have also provided a link to the public tracker. Please feel free to use the link provided for future updates.

Link: Unreal Engine Issues and Bug Tracker (UE-40523)

Make it a great day

Thanks Rudy!

Hi did you get a solution for that issue ? Thanks

I set the Widget Hide in game but i have the some problem

I have a temporary response u can set the location of the object (yaw=Z to -400) for example

Hi thamer, I did something similar in the meantime, thanks for the reply.

Did u try it in 4.16 ?

I’m on 4.17.1 and this issue still persists. Widget components on an actor that are hidden still block the widget interaction component.

Hello Alwaysusa,

I ran a few tests on my end and was unable to reproduce the issue. Due to the original test case no longer reproducing this issue. The issue you are experiencing may be a separate issue. For this reason I will need you to create a new thread for tracking purposes. After this you can provide a link to the new thread in reply here so that someone can follow up.

Make it a great day

Hi, I am also still having this issue in 4.21

The same problem in 4.22

persist the problem in 4.26,

I ran into the same problem in UE 5.2

I also have this problem on 5.4 :confused:

After wasting a bit of time, decided the location offset is the best workaround. I now hide/collapse + set relative location Z to -1000 (or whatever works) when hiding.