No internet connection
  1. Home
  2. Editor

Is there a way to get the Vector 2 coordinates of the mouse?

By ModestSam2018-08-14 17:08:02.299Z

I'm Trying to get access the users current mouse coordinates.

Solved in post #2, click to view
  • 1 replies
  1. M
    ModestSam2018-08-14 17:09:46.062Z

    Yes you can! Dereference MousePosition.X or MousePosition.Y from the Input node. I've attached a screenshot showing how you can change a Vector2 variable to the current mouse position in order to store it as soon as the user clicks the Viewport. Then in this example I created a condition to test the x component of that Vector2 to see if the user clicked on the right side of the main viewport. Hope that helps.

    ReplySolution