The problem is that whenever I click the mouse when the cursor is shown, the game loses focus and click events no longer work. All I basically want is for the game to run exactly as if the mouse cursor is invisible. Does anyone know how to do that?
hmm…
why do you want to trigger the click event while the mouse is being shown anyways?
I don’t think
there’s a way to trigger both touch and click events at the same time but you could
add a transparent widget button on the screen when showing the mouse
link that button click event to the click event you want
for that, my best guess is, you would need to trace from the camera into the world and check what actor you hit in the world, from there trigger the click event,
OK, so apparently I had the wrong idea. I think it would be better to do a line trace but with the cursor position. Right now, I’ve set up a line trace with the center of the screen so if the center crosshair is overlapped with the object and the “interact” button is pressed, the event triggers. Is there a way to do that with the mouse cursor position instead of the center crosshair?