Left Mouse Press is calling automatically Left Mouse Release

Hi community!

I have a first-person character which has a component derived from “UWidgetInteractionComponent”.

I use it to fake a click on the screen.

In the Tick, I constantly check if the RayTrace detects a clickable spot or not.

The problem is that, when it detects it, if I press the left mouse click, it automatically launches the release and I don’t know why.

Debugging a bit, I have come to the conclusion that it is Unreal’s “SetCustomHitResult” what is causing the mouse release.

Has anyone had this issue?

In UE4 it worked perfectly but a few months ago I transferred the project to UE5.

ECC_ScreenUI is the ECC_GameTraceChannel3

Thank you in advance.

Greetings :slight_smile: