Hey folks,
i was trying to get the current mouse position with the new Input System and Visual Scripting. Though i didn’t find any node for that purpose, only the three “On Input System Events”. Can someone point me in the right direction pls. ?
I tried and it doesn’t work, I don’t understand how a position could be pressed, and how the interaction could know if it is left or right click.
Can you show me how do you get the position in your case please? I don’t see how with both new input system and visual scripting
in the input window make a new action of pointer position and you have to add the input system library to your visualScripting in the project settings then once you have the input system library installed and regenerated go to your script and add a on inputSystemVector2 or something like that i forgot the exact name but you should be able to find it with that or just go with vector 2 and scroll a little then once you have the node in the dropdown pick the event that you had just made and the vector output is the position of your cursor or pointer i havent found the difference yet. And do remember that this position is relative to your screen so 0,0 is at the bottom left if you want to get the wold space postion then get a canvas to world space node put in your camera and the position of the cursor and you have the world space. good luck and i hope this helps