playMaker

Author Topic: warp cursor  (Read 1139 times)

trsnell

  • Playmaker Newbie
  • *
  • Posts: 8
    • Portfolio
warp cursor
« on: February 06, 2021, 11:17:34 PM »
I'm working on a game with both a camera rotation and point and click system. While rotating the camera, the cursor of course moves, so from the player perspective the move cursor appears to pop around after rotating the camera. I'd like to have it reset back to where it was before moving, so that after you rotate the cursor "stays" where it was.

I came across this in the package manager input system, which should do what I need.
https://docs.unity3d.com/Packages/com.unity.inputsystem@1.1/manual/Mouse.html

Would anyone be able to make an action with the mouse X and Y as variables?


djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: warp cursor
« Reply #1 on: February 09, 2021, 04:24:09 PM »
Hi.
This asset can control mouse position : Cursor Control

You can use Get/Set Properties actions to use this or you can get this asset which includes actions for Cursor Control