How To Make A Camera Follow Script In Unity
Tvtig
#unity3d
In this video we will be looking at how to create a camera follow script in Unity. I have been really inspired by the game Hades, and I wanted to create a camera follow script that would resemble that of Hades. We look at how you can go about setting your scene up to use a camera in this way, as well as creating a script that will be used to track a target object. In this case, the target object is the player.
Camera follow scripts are straight forward, you provide the script with a transform that you want to target, as well as the distance away from the target that you want the camera to be. You then compute the current distance from the transform to the camera and move the camera accordingly.
You can find the entire project linked here: https://github.com/Tvtig/Stickalungu ... https://www.youtube.com/watch?v=Ug_m7OQkR3I
84243767 Bytes