# Rail Camera

Rail can be a very powerful tool if you want to precisely control camera position in a level at runtime. You can use a *RailCamera* to do this. If you also want to orient the camera to a specific target actor, you can use *TargetingAim* for the aim component.

<figure><img src="https://1253177398-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIc7aRtmwmEkkqEJZORmC%2Fuploads%2Fe8bXPhQ7gXSiiqIlBDEg%2FRailCamera.gif?alt=media&#x26;token=cfc13afc-eb19-432c-b746-080144c3484b" alt=""><figcaption></figcaption></figure>

1. Right click on Content Browser -> "Blueprint Class" -> create a "ECameraBase" class.
2. Open the class blueprint, select the "Camera Settings Component" and on the "Details" panel, expand the "ECamera" section.
3. Choose *RailFollow* for "Follow Component", and *TargetingAim* for "Aim Component" if you would like to lock camera orientation to a particular target actor.
4. In *RailFollow*, you must specify a **Camera Rig Rail** actor in the level to property "Rail", then setting other properties according to your needs. Note that there are three follow types in *RailFollow*: *Follow Target*, *Fixed Speed* and *Manual*. Refer to [Rail Follow](https://sulleyyys-organization.gitbook.io/manuals-of-ccs/camera-components/follow-components/railfollow) for more information about these three types.
5. In the blueprint where you want to call this camera, invoke the "CallCamera" node and pass in the "Camera Class", "Follow Target" and "Aim Target". If you are not using the *Follow Target* in property *Follow Type*, you do not have to pass in an actor to "Follow Target". You can also specify "Blend Time", "Blend Func" and "Blend Exp" if you want smooth blending in.
