script of camera as a child of player ?

Hi Unity World!

I am new with Unity, and i like that camera follow the player when we make it as child of it, just i need to add some smooth so i need the original script that unity use to follow the player when we make camera under player (Child).

Thanks a lot guys and i hope i have answer soon.

… that not going to work too well. The child would be updated based on the parent’s movement and then it’s script would attempt to alter that movement; I’m envisaging janking stuttering at least.

It’s pretty much why the camera follow approach exist, to have the camera gameobject follow the target without being attached.

Thanks for your replay LeftRighty, what i understand from your post there is no hope to creat a script for camera to follow the player like what we have when we put it like a child

click the camera and then on your keyboard, press ctrl+alt+c

Then after that, drag the camera to the object you want it to be following, and then place it where your need it to follow.