So here is my code:
My game runs this code every time you press the left mouse and it always gives 0 as result.
Does anyone know what I do wrong here?
Edit:
So I did manage to find the problem instantly after I send this question xd
GetMousePosition Works well. The problem was that UE_LOG does not work with vectors so I needed to convert them to int first.