Description
The CameraOffset
property of the PlayerController
class specifies the offset of the camera relative to the player's position. This property is useful for adjusting the camera's position to achieve the desired view, especially in third-person or custom camera setups.
Usage
To use the CameraOffset
property, simply set it to a Vector3
value that represents the desired offset of the camera from the player's position. This can be used to adjust the camera's position dynamically based on gameplay requirements or player preferences.
Example
// Example of setting the CameraOffset property
PlayerController playerController = new PlayerController();
// Set the camera offset to be 2 units above and 3 units behind the player
playerController.CameraOffset = new Vector3(0, -3, 2);