Playmaker Forum

PlayMaker Feedback => Action Requests => Topic started by: westingtyler on August 23, 2016, 08:20:07 PM

Title: Lock Cursor to Middle of Screen or Just Center It?
Post by: westingtyler 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?
Title: Re: Lock Cursor to Middle of Screen or Just Center It?
Post by: cwmanley 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