Description
The UseCameraControls
property of the PlayerController
class determines whether the camera controls are enabled for the player. When set to true
, the player can control the camera, typically using input devices like a mouse or gamepad. This property is part of the camera feature set and is essential for enabling first-person or third-person camera perspectives in a game.
Usage
To enable camera controls for a player, set the UseCameraControls
property to true
. This will allow the player to manipulate the camera view, which is crucial for games that require dynamic camera perspectives.
Example
// Example of enabling camera controls for a player
PlayerController playerController = new PlayerController();
playerController.UseCameraControls = true;