playMaker

Author Topic: Lock Cursor to Middle of Screen or Just Center It?  (Read 2195 times)

westingtyler

  • Sr. Member
  • ****
  • Posts: 277
    • My Video Game Projects Web Site
Lock Cursor to Middle of Screen or Just Center It?
« on: August 23, 2016, 08:20:07 PM »
I want to lock the cursor to the middle of the game screen once a certain button is pushed that indicates you are using a gamepad. If I can't lock it, I at least want to center the mouse cursor on the middle of the screen. Is this possible in Playmaker?

cwmanley

  • Full Member
  • ***
  • Posts: 107
Re: Lock Cursor to Middle of Screen or Just Center It?
« Reply #1 on: August 23, 2016, 11:12:06 PM »
Hello,

You can use the Set Mouse Cursor Action with the Lock option, but you need the Playmaker GUI prefab in the scene.

You can change the Playmaker Preferences to auto add the Playmaker GUI prefab.

The Control Mouse option should be enabled by default.

Thanks
« Last Edit: August 24, 2016, 02:30:33 AM by cwmanley »