# How can I interact with a 3d widget in screenspace with widget component

**URL:** <https://forums.unrealengine.com/t/how-can-i-interact-with-a-3d-widget-in-screenspace-with-widget-component/2063223>\
**Category:** Blueprint\
**Tags:** unreal-engine, Blueprint, question, UMG\
**Created:** [October 11, 2024, 10:52am UTC](https://forums.unrealengine.com/t/how-can-i-interact-with-a-3d-widget-in-screenspace-with-widget-component/2063223 "2024-10-11T10:52:20Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![tolacipeetahi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tolacipeetahi](https://forums.unrealengine.com/u/tolacipeetahi)\
**Post date:** [October 11, 2024, 10:52am UTC](https://forums.unrealengine.com/t/how-can-i-interact-with-a-3d-widget-in-screenspace-with-widget-component/2063223/1 "2024-10-11T10:52:20Z")

</div>

I have a 3d waypoint widget in screen space, I want it to play a little timeline animation when I look at it and reverse when I stop looking at it, nothing fancy.

Currently when you hover over the widget, nothing happens.

I have the widget presets set to block a custom channel “waypointchannel”, and to ignore all other channels. Everything else in the world is set to ignore waypointchannel, as I selected ignore as the default interaction when creating the channel. The widget interaction component is set to use waypointchannel.

I believe I set up the channels and widget interaction correctly, it’s all in range, the widget actor bp is set to block waypointchannel, and the widget interaction component is set to use waypoint channel, but I can’t get anything to happen how I would expect with a normal 3d widget.

I expect the issue is that the widget is in screenspace and my interaction source is not screen, it is world maybe?

Any ideas? Thanks!

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [October 11, 2024, 10:54am UTC](https://forums.unrealengine.com/t/how-can-i-interact-with-a-3d-widget-in-screenspace-with-widget-component/2063223/2 "2024-10-11T10:54:19Z")

</div>

> [@tolacipeetahi](#):
>
> Currently when you hover over the widget, nothing happens.

In the widget component:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/d/9/1d9b41c3aafbf4df411ac78553644f03b1a588f8.png)

And the `Widget Interaction Component` is not needed here - not if you’re using a mouse. The interaction comp comes in handy if there’s no mouse cursor.

---

<div class="post-metadata">

**Author:** ![tolacipeetahi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tolacipeetahi](https://forums.unrealengine.com/u/tolacipeetahi)\
**Post date:** [October 11, 2024, 10:56am UTC](https://forums.unrealengine.com/t/how-can-i-interact-with-a-3d-widget-in-screenspace-with-widget-component/2063223/3 "2024-10-11T10:56:09Z")

</div>

It is grayed out and untoggleable

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/b/d/abd27e7147298275c08ce03ff5316eba7918547c.png)

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [October 11, 2024, 10:56am UTC](https://forums.unrealengine.com/t/how-can-i-interact-with-a-3d-widget-in-screenspace-with-widget-component/2063223/4 "2024-10-11T10:56:42Z")

</div>

Oh, my bad, did not read that correctly, you’re already in screen space, right? Then there are additional requirements. Why are you using an interaction component? It’s there to specifically work with in world space.

---

<div class="post-metadata">

**Author:** ![tolacipeetahi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tolacipeetahi](https://forums.unrealengine.com/u/tolacipeetahi)\
**Post date:** [October 11, 2024, 10:57am UTC](https://forums.unrealengine.com/t/how-can-i-interact-with-a-3d-widget-in-screenspace-with-widget-component/2063223/5 "2024-10-11T10:57:48Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/9/0/f90838df8ed1b6984742099cc8abf77dcf6d5324.png)

Yes the widget is in screen space, the interaction component is on a vehicle that must face the waypoint, so its source is in world

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [October 11, 2024, 10:59am UTC](https://forums.unrealengine.com/t/how-can-i-interact-with-a-3d-widget-in-screenspace-with-widget-component/2063223/6 "2024-10-11T10:59:02Z")

</div>

The Widget Interaction Component traces in the world space and attempts to hit the widget component’s quad mesh. It cannot hit screenspace widgets. You need another solution.

---

<div class="post-metadata">

**Author:** ![tolacipeetahi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tolacipeetahi](https://forums.unrealengine.com/u/tolacipeetahi)\
**Post date:** [October 11, 2024, 11:00am UTC](https://forums.unrealengine.com/t/how-can-i-interact-with-a-3d-widget-in-screenspace-with-widget-component/2063223/7 "2024-10-11T11:00:50Z")

</div>

Do you have any suggestions? I enjoyed the screenspace widget for staying the same size regardless of distance and being rendered through objects, but unfortunately this is essential to its use

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [October 11, 2024, 11:07am UTC](https://forums.unrealengine.com/t/how-can-i-interact-with-a-3d-widget-in-screenspace-with-widget-component/2063223/8 "2024-10-11T11:07:26Z")

</div>

I am a bit baffled:

> Currently when you hover over the widget, nothing happens.

vs

> the interaction component is on a vehicle that must face the waypoint

So, by _hovered_, you do not mean the mouse cursor at all, right? But, instead, a vehicle tracing (via the interaction component) using screen centre.

Assuming the widget belongs some sort of Point of Interest actor existing in the world space, you could add a simple sphere collider and then do a regular trace (no interaction component needed). But there may be issues to address - like the size of the collider sphere. This may be irrelevant in the top down / isometric view, though.

Not sure I’m getting the whole picture atm, feels like stumbling in the dark a bit. Any chance for a crude overview of the scene?

---

<div class="post-metadata">

**Author:** ![tolacipeetahi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tolacipeetahi](https://forums.unrealengine.com/u/tolacipeetahi)\
**Post date:** [October 11, 2024, 11:11am UTC](https://forums.unrealengine.com/t/how-can-i-interact-with-a-3d-widget-in-screenspace-with-widget-component/2063223/9 "2024-10-11T11:11:27Z")

</div>

Sorry for the confusion, I was thinking when you point the vehicles interaction component over the screenspace widget that would be considered hovering, but if I enable mouse input I can hover it normally, I didn’t understand that you could not interact from world → screen space.

I wanted to be able to point the vehicle at the waypoint, and have it play an animation indicating that you may go there

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [October 11, 2024, 11:23am UTC](https://forums.unrealengine.com/t/how-can-i-interact-with-a-3d-widget-in-screenspace-with-widget-component/2063223/10 "2024-10-11T11:23:26Z")

</div>

> [@tolacipeetahi](#):
>
> I expect the issue is that the widget is in screenspace and my interaction source is not screen, it is world maybe?

You nailed it here, in the _critical_ bit I did not read somehow…

* * *

Afaik: the quad to trace against is not there while we’re in the screen space mode. I struggled with this once when trying to make a retainer do uncanny things.

- a sphere collision that scales with distance could work well enough - does not need to be ticked, you may update it once per second or every less frequently
- technically you can Draw at Desired Size (in world space) but it’s somewhat expensive:

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/7/a/f7a49100f65ac5d0a134d892bfe9ca761fbc74e1.png)

Or scale the component. And it need rotation to match the camera. Not sure if a neat solution exits here.

---

<div class="post-metadata">

**Author:** ![tolacipeetahi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tolacipeetahi](https://forums.unrealengine.com/u/tolacipeetahi)\
**Post date:** [October 11, 2024, 11:29am UTC](https://forums.unrealengine.com/t/how-can-i-interact-with-a-3d-widget-in-screenspace-with-widget-component/2063223/11 "2024-10-11T11:29:53Z")

</div>

Thank you for the suggestions, but one last question, If I were to draw it at desired size, how would I render the widget through other objects?

Like seen here

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [October 11, 2024, 11:30am UTC](https://forums.unrealengine.com/t/how-can-i-interact-with-a-3d-widget-in-screenspace-with-widget-component/2063223/12 "2024-10-11T11:30:20Z")

</div>

You can disable depth in the material:

> [@Is it possible to make 3d UMG widgets never get occluded?](https://forums.unrealengine.com/t/is-it-possible-to-make-3d-umg-widgets-never-get-occluded/408536/2):
>
> Yes. find material in the engine content: Widget3DPassThrough duplicate it and move it to your project. open the material and Disable Depth Test in the advanced part of the Translucency tab assign material to your widget component

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/e/b/0eb4ed24fd616abc6805d2610fa2b458b9da6a96.jpeg)

---

<div class="post-metadata">

**Author:** ![tolacipeetahi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tolacipeetahi](https://forums.unrealengine.com/u/tolacipeetahi)\
**Post date:** [October 11, 2024, 11:39am UTC](https://forums.unrealengine.com/t/how-can-i-interact-with-a-3d-widget-in-screenspace-with-widget-component/2063223/13 "2024-10-11T11:39:40Z")

</div>

Thank you for the suggestions and resources, and thanks for the map that you released, I used that as a foundation and learned a lot from tearing it apart!

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [November 10, 2024, 11:39am UTC](https://forums.unrealengine.com/t/how-can-i-interact-with-a-3d-widget-in-screenspace-with-widget-component/2063223/14 "2024-11-10T11:39:45Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
