Forum rules - please read before posting.

Hide and show cursor at specific parts of game.

Hello. I would like my game to have a mouse cursor when inside menus (main menu, pause menu), but to hide the cursor during gameplay.
I have a main menu. After choosing a new game, once the gameplay starts, the cursor stays on screen by default.
I have already made it so that the system cursor does not show in the editor.

Setting "Display Cursor" to "Only when paused" makes it disappear both during gameplay and menus, while retaining functionality (none of my menus pause gameplay).
Using the Engine:Manage Systems action to disable the cursor also disables hotspot interaction.
Setting the "Lock cursor in center on start" and "Hide cursor on center" make it impossible to use the main menu.

I'm just not sure where to go from here.

Unity 2021.3.11f1
AC version 1.78.4
Game is 3D, has direct movement, and hotspot detection by player proximity.

Thanks.

Comments

  • Checking Hide cursor when locked in screen's centre? should do it.

    The Lock cursor in screen's centre when game begins? only affects its default lock state. You can lock/unlock the cursor manually at any time with the Player: Constrain Action's Cursor lock field.

  • Awesome, thank you. Didn't know the Player: Constrain had that option.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.