


Which is useful, as it means locking the cursor for a first-person game, or hiding the cursor because you want to use your own custom pointer, is easy to do. Hiding the cursor in Unity works by setting the Visible property of the Cursor Class to false, while setting the cursor’s Lock State to locked will force the cursor to the centre of the screen while the application is in focus. Luckily, however, locking or hiding the cursor in Unity is pretty simple… However, not every game uses the mouse and even the ones that do may modify how the mouse cursor appears, either by replacing it with a custom cursor, hiding it out of view, or by locking it to the centre of the screen, such as for a first-person game, where the mouse is typically used to control the orientation of the player’s head. There are many different ways to control a game.īy using a controller, by touching a screen or, as is the case with many PC games, by using the mouse in some way.
