# click event not working properly - mouse offset ?

**URL:** <https://forums.unrealengine.com/t/click-event-not-working-properly-mouse-offset/2434378>\
**Category:** Programming & Scripting\
**Tags:** click, click-event, unreal-engine, mouse\
**Created:** [April 1, 2025, 12:30pm UTC](https://forums.unrealengine.com/t/click-event-not-working-properly-mouse-offset/2434378 "2025-04-01T12:30:49Z")\
**Posts on this page:** 1\
**Showing post:** 8

<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:** [April 2, 2025, 9:23am UTC](https://forums.unrealengine.com/t/click-event-not-working-properly-mouse-offset/2434378/8 "2025-04-02T09:23:17Z")

</div>

Do consider the standard trace + interface combo for this:

> [@Moving an object by pointing another object at it](https://forums.unrealengine.com/t/moving-an-object-by-pointing-another-object-at-it/1657869/2):
>
> See if this point_down helps with this point_up_2 particular bit. a standard forward camera trace: You’d use an interface or inheritance if there are more types to handle, ofc. not sure how you want stuff to move, here it’s via a timeline: which results in: the branches in the script prevent it from spamming since we’re tracing on Tick: Hopefully you can adapt it to your needs. It’s a setup similar to this one:

Another one:

> [@Third person crosshair object highlight troubles](https://forums.unrealengine.com/t/third-person-crosshair-object-highlight-troubles/252041/13):
>
> The communication in the example revolves around Inheritance + Interface - a potent combo, imho. the base class implements the interface (which children inherit) the widget uses the same interface - calls children receive can be propagated: Actor → Widget Component → Widget without casting or finding user widgets (this can be done in many ways, though) the player has a collision sphere and sends an interface call to overlapped actors as we approach: [image] [image] Above, handl…

This one has an example project attached.

* * *

There’s, of course, tons of tut on this:

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/e/a/feacf6e0dd4aa49403851495d4883725fa99ef34.jpeg "How To Select (Highlight) Other Actors/Objects By Looking At Them In Unreal Engine 5") ](https://www.youtube.com/watch?v=R7oLZL97XYo)

Since this is one of the more common interactions.

* * *

The gist is that you trace using a camera forward vector. The crosshair is just a visual reference. You should not use a mouse cursor, especially considering the VR implementation where there is a very different pointing device.

---

_[View the full topic](https://forums.unrealengine.com/t/click-event-not-working-properly-mouse-offset/2434378)._
