How can I find the mouse position in Unity? I am using the new Input System and I've already tried
InputDevice mouse = Mouse.current;
Ray ray = camera.ScreenPointToRay(mouse.position);
, but it didn't work. Anyone?
How can I find the mouse position in Unity? I am using the new Input System and I've already tried
InputDevice mouse = Mouse.current;
Ray ray = camera.ScreenPointToRay(mouse.position);
, but it didn't work. Anyone?