I am new to Unreal and I’m making a first person game where I’m trying to make an object do something if I hover the mouse over it and something else if it gets clicked. For some reason, after turning on the Mouse Over Events, the Click Events don’t seem to be working anymore. Can someone help pls?
PS: I should also specify that the way the crosshair works is that I made it so the cursor is always in the middle of the screen, which is probably not the best way of doing it. If it can move freely, both the Mouse Over and Click events work fine.
Hey @iLegoSiEuAm,
I know that both Mouse Over and click events need to be enabled in the player controller for both types of input to work.
I hope this can help you out!
-Zen
Thank you for responding! Unfortunately, I’ve already done that already and as soon as I turn Mouse Over on, the Click event stops working.
Hi, did you ever figure this out? I’m hitting the same issue in UE5.3.1. As soon as I enable over events in player controller, all my bound click events stop working. Thanks
Hello! YES! The workaround for this is to first of all NOT have the cursor always in the middle of the screen, contrary to what I first mentioned in the post, and instead use a Line Trace (Raycast) for checking if there’s a specific object in front of the player and another raycast for when the mouse button is pressed. Hope this helps!