How do I add the "E" prompt to a movable object after I aim my crosshair in it?

![Screenshot 2025-08-18 043750|690x239]


I am using this blueprint to look grab and move any movable object after pressing “E” while aiming at it, I want a “E” prompt to pop up when I am in the range and view to pick it up.

Welcome!

There’s quite few different ways to approach this depending on what your goal is. I will demonstrate the blueprint widget method.

So you’ll need to create a widget to be your prompt to begin with.


(this is just a simple widget with an image, nothing fancy)

Add a widget component to your player blueprint and set the widget to be the prompt you just created and set its visibility to off.

Now in this example we are going to simply run this on a timer with a trace so that we can constantly check in front of us for objects that can be picked up.


(The time does not have to be that frequent but if the objects are moving around a lot you will see the prompt jumping to “stick” to the actor)

Then when playing the game we will trace from the camera and when it hits an object type that can be picked up it will turn on the prompt and set it’s position to be aligned to that hit actor.

It’s worth noting this is very much a prototype example, and if you are going into building a proper HUD then that might supersede this, but as an example this will give you the behaviour you’re after.