I’ve tried using a Widget Interaction Component for a first person character to interact with a 2D widget in 3D world space. When doing this in an empty example project, it works perfectly and very easily. Just throw a widget in an actor, place the actor in the world, add a Widget Interaction Component to the player character, and it just works perfectly “out of the box”.
However, in the project I’m currently working on, trying to add this same simple component just doesn’t work!
I have a widget that already works fine in 2D. I add that to an actor and place the actor in the world, the exact same way as in the example project. I then add a Widget Interaction Component to our player character pawn, just like in the example project. I do every step the exact same way. But even though it works in the example project, it just doesn’t work in my custom project.
When I enable the debug trace for the Widget Interaction Component, I see the trace line being drawn but it never actually hits the widget. When the debug trace works as intended (in the example project), the debug line should stop when it hits a widget, and there’s a small blob drawn at the hit location.
In my project, this just doesn’t happen. The line continues through and behind the widget, and there is no colored dot where the line should hit the widget. And obviously I can’t interact with the widget.
I can’t for the life of me figure out what’s wrong in our project that makes this happen. I’ve tried changing the Virtual User Index and Pointer Index for the Widget Interaction Component but it doesn’t seem to make a difference.
I can’t find any tutorial or anything that adresses this. If anything, people seem to be having the reverse problem, with traces hitting widgets that are supposed to be invisible…
But how do I make the trace hit a widget that it’s supposed to hit?? Please help! You’re my only hope.
TL;DR: Widget Interaction Component debug trace goes right through widget, can’t interact with widget… Why?