Click events not working when the mouse cursor is shown

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,