The lenses here are mainly from behind the characters.
Start by creating a new C # script named Myfollow, and then paste the following code in to save:
Using unityengine;using system.collections;public class myfollow:monobehaviour{public Float Distanceaway = 5;//Distanc E from the back of the craftpublic float distanceup = 2;//distance above the craftpublic float smooth = 3;//how smooth t He camera movement IsPrivate Gameobject hovercraft;//to store the hovercraftprivate Vector3 targetposition;//the Positio n the camera is trying to be intransform follow;void Start () {follow = Gameobject.findwithtag ("Player"). Transform;} void Lateupdate () {//Setting the target position to being the correct offset from the Hovercrafttargetposition = Follow.posi tion + vector3.up * Distanceup-follow.forward * distanceaway;//making a smooth transition between it ' s current position And the position it wants to be intransform.position = Vector3.lerp (transform.position, targetposition, Time.deltatime * Smooth)//Make sure the camera was looking the right way!transform. LookAt (Follow);}}
Then attach the above script to the camera.
Finally, set the tag of the character you want to follow to the player.
After running the game, the camera can follow the character behind the character.
Unity3d Camera Follow people