Setup
Quick Setup Video: Link
Full setup
- Add
ATPCComponent
to your pawnAdd
UATPCComponent
to your pawnAttach/Reattach ue CameraComponent and others child components from the former SpringArmComponent to the new
ATPCCameraComponent
within the constructor.
Creating Camera Mode Data Assets
- Creating Camera Mode Data Assets
In the Content Browser:
Right-click and choose "Miscellaneous > Data Asset".
Select
ATPCCameraModeDataAsset
as the asset class.Name your Data Asset appropriately (e.g., "CameraMode_Default", "CameraMode_Aiming", etc.).
- Configuring Camera Modes
Within the Data Asset:
Camera Mode Tag: Assign a unique GameplayTag to identify this camera mode. Use descriptive names for easy reference (e.g., "Camera.Mode.Default", "Camera.Mode.Aiming").
Camera Mode Settings: Expand the "Camera Mode Settings" section. This section holds all the configuration options for the camera's behavior.
Customize Each Section:
Go through each section: Location, Rotation, FOV, Fading, Follow Terrain, Camera Shakes, and Lock On Target.
Adjust the settings within each section to create your desired camera behavior for this particular mode. Refer to the "Camera Mode Configuration" section of the main documentation for a detailed explanation of each parameter.
Last updated