Camera Changer
CameraChanger
iterates over all theCamera
s in theVehicleCamera
s list and makes sure that only one camera is active at one time.- It can work with any camera script, not only the ones included with the asset.** This includes e.g. Cinemachine cameras.
Setup
- Attach
CameraChanger
component to the Cameras object. This should be an empty object that is a child of vehicle root. - Tick
Auto Find Cameras
or manually assign cameras to theVehicle Cameras
list. IfAuto Find Cameras
is enabled it is important that all the cameras are placed as children of the object containingCameraChanger
script or otherwise they will not be auto-detected. - Cameras can be changed by pressing
C
(default value). Check Input Setup for more info.