Description
The UseFovFromPreferences
property of the PlayerController
class determines whether the field of view (FOV) for the player's camera should be automatically set based on the player's preferences. This property is part of the camera feature set and can be used to ensure that the player's visual experience aligns with their personal settings.
Usage
To use the UseFovFromPreferences
property, you can simply get or set its value within your player controller logic. Setting this property to true
will make the player's camera FOV adhere to the preferences defined in the player's settings. Conversely, setting it to false
will allow for manual control of the FOV.
Example
// Example of setting the UseFovFromPreferences property
PlayerController playerController = new PlayerController();
// Enable FOV from preferences
playerController.UseFovFromPreferences = true;
// Check if FOV from preferences is enabled
bool isFovFromPreferencesEnabled = playerController.UseFovFromPreferences;
// Output: true
// This indicates that the player's camera FOV is being set based on their preferences.