Camera Switcher - User Guide
Overview
The CameraSwitcher component provides the ability to smoothly transition between multiple Camera components that is registered inside a pawn/character.
The component automatically detects all of the Camera registered inside the character, and collect them inside a list.
The current version of CameraSwitcher will perform smooth transition for,
- Camera Transform (Location, Rotation, Scale)
- Field of View
Details of the list of functions that the CameraSwitcher component provides can be seen below.
Setup
Component initialization, should be called before the rest of the functions.
Parameter
-
Default Camera
: Camera Component
This is the default camera that will be used by the CameraSwitcher owner in the beginning of the game.
If no value is set to the Default Camera, a random Camera Component will be chosen out of the ones registered with the owner.
SwitchToNextCamera
Tell the CameraSwitcher to perform a transition to the next camera on the list.
Parameter
-
Camera Transition Mode
: Camera Transition Mode (Enum)
See Enums section for details.
-
Custom Interp Speed
: Float
The interpolation speed used when the Camera Transition Mode is set to CustomSmoothing.
SwitchToPrevCamera
Tell the CameraSwitcher to perform a transition to the previous camera on the list.
Parameter
-
Camera Transition Mode
: Camera Transition Mode (Enum)
See Enums section for details.
-
Custom Interp Speed
: Float
The interpolation speed used when the Camera Transition Mode is set to CustomSmoothing.
SwitchToCamera
Tell the CameraSwitcher to perform a transition to the camera specified in the Camera Component parameter.
Parameter
-
Camera Component
: Camera Component
The next Camera Component that the CameraSwitcher should transitioned into.
-
Camera Transition Mode
: Camera Transition Mode (Enum)
See Enums section for details.
-
Custom Interp Speed
: Float
The interpolation speed used when the Camera Transition Mode is set to CustomSmoothing.
Camera Transition Mode (Enum)
The mechanism that should be used when performing the camera transition.
Values
-
NoSmoothing
No transition is performed when changing from the old camera to the new camera.
-
BasicSmoothing
Perform camera transition using Unreal Engine's SetViewTargetWithBlend.
-
CustomSmoothing
Perform camera transition using a custom interpolation method.