Description
The LookSensitivity
property in the PlayerController
class allows you to adjust the sensitivity of the player's eye angle movements. This property is particularly useful for fine-tuning the responsiveness of the player's look controls beyond the default sensitivity settings provided by player preferences. The sensitivity can be adjusted within a range of 0 to 2, with a step increment of 0.01.
Usage
To modify the look sensitivity of a player, you can directly set the LookSensitivity
property on an instance of PlayerController
. This adjustment will affect how quickly the player's view changes in response to input.
Example
// Example of setting the LookSensitivity property
PlayerController playerController = new PlayerController();
playerController.LookSensitivity = 1.5f; // Sets the look sensitivity to 1.5