Description
The UseLookControls
property of the PlayerController
class determines whether the camera is controlled by the mouse. When set to true
, the player's camera will move in response to mouse movements, allowing the player to look around the game environment.
Usage
To enable mouse look controls for a player, set the UseLookControls
property to true
. This is typically done in the player's initialization or setup code.
Example
// Example of enabling mouse look controls for a player
PlayerController playerController = new PlayerController();
playerController.UseLookControls = true;