ULimenCameraComponent
Overview
ULimenCameraComponent extends UCameraComponent to provide enhanced camera control, including tilt and zoom. It allows for customizable tilt functions (linear or ease-in), zoom ranges, and interpolation speeds. The component can be configured through the editor and interacted with via Blueprint calls.
Properties
Type | Name | Access | Description |
|---|---|---|---|
| TiltFunction | EditAnywhere, BlueprintReadOnly | Determines the tilt function used (Linear or EaseIn). |
| MaxCameraTilt | EditAnywhere, BlueprintReadOnly | Maximum tilt angle for the camera. |
| TiltStrength | EditAnywhere, BlueprintReadOnly | Strength of the tilt effect. |
| CameraTiltRecoverSpeed | EditAnywhere, BlueprintReadOnly | Speed at which the camera recovers from tilt input. |
| bInvertTilt | EditAnywhere, BlueprintReadOnly | Inverts the tilt direction if true. |
| bEnableTilt | EditAnywhere, BlueprintReadOnly | Enables or disables tilt functionality. |
| bEnableZoom | EditAnywhere, BlueprintReadOnly | Enables or disables zoom functionality. |
| CameraZoomRange | EditAnywhere, BlueprintReadOnly | Range of camera zoom values. |
| FirstPersonZoomRange | EditAnywhere, BlueprintReadOnly | Range of first-person zoom values. |
| ZoomMultiplier | EditAnywhere, BlueprintReadOnly | Multiplier for zoom input. |
| CameraZoomInterpolationSpeed | EditAnywhere, BlueprintReadOnly | Speed at which camera FOV interpolates to target value. |
| FirstPersonZoomInterpolationSpeed | EditAnywhere, BlueprintReadOnly | Speed at which first-person FOV interpolates to target value. |
Functions
Return Type | Signature | Description |
|---|---|---|
| BeginPlay() | Initializes the camera component and sets up initial values. |
| GetCameraView(float DeltaTime, FMinimalViewInfo& DesiredView) | Updates the camera view based on tilt and zoom settings. |
| AddCameraZoom(float Amount) | Adjusts the target camera FOV by a specified amount. |
| SetCameraZoom(float Amount) | Sets the target camera FOV to a specific value. |
| AddFirstPersonZoom(float Amount) | Adjusts the target first-person FOV by a specified amount. |
| SetFirstPersonZoom(float Amount) | Sets the target first-person FOV to a specific value. |
| GetCameraZoomRange() const | Returns the current camera zoom range. |
| GetCurrentCameraZoom() const | Calculates and returns the current camera zoom level based on the target FOV. |
| GetCurrentFirstPersonZoom() const | Calculates and returns the current first-person zoom level based on the target FOV. |
| CameraZoomToFOV(float InZoom) | Converts a zoom value to an equivalent FOV value for the camera. |
| FirstPersonZoomToFOV(float InZoom) | Converts a zoom value to an equivalent FOV value for first-person view. |
| CameraFOVToZoom(float InFOV) | Converts an FOV value to an equivalent zoom value for the camera. |
| FirstPersonFOVToZoom(float InFOV) | Converts an FOV value to an equivalent zoom value for first-person view. |
Usage & Implementation Notes
The component uses interpolation to smoothly transition between current and target FOV values.
Tilt functionality can be enabled or disabled, with customizable strength and recovery speed.
Zoom functionality is controlled by a multiplier and can be adjusted in real-time via Blueprint calls.
The component supports both camera and first-person view zoom adjustments.