Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: wheretheidivides on July 21, 2015, 02:17:56 AM

Title: 'Set Mouse Cursor' problem
Post by: wheretheidivides on July 21, 2015, 02:17:56 AM
So I am using the 'set mouse cursor' action.  I want it to enable when the main menu starts.  Then whenever the game starts, disable it.  So I want to hide it and disable the mouse cursor.  How do you do that?

1) It seems that this action just hides the mouse and does not disable it.
2) When it is off and I go back to the main menu, it turns on but will not move.  The pointer reappears but can not move it.  However, if I leave it turned off, then it is invisible but will move abound the screen (I can select the menu buttons).

So Is there another action to activate and deactivate the mouse?  What am I doing wrong?

So in scripting like this:
Screen.showCursor = false
or unity5
Cursor.visible = false;

Also, how do you lock the mouse cursor as well?
Title: Re: 'Set Mouse Cursor' problem
Post by: Lane on July 21, 2015, 06:58:53 AM
Unity 5.x?

http://hutonggames.com/playmakerforum/index.php?topic=9740.0