Question by 
               aardappel156 · Jun 28, 2018 at 11:48 AM · 
                cameratransformcamera-movementcamera rotatetransform.lookat  
              
 
              Why does my transform.lookat not work?
Hi guys,
I'm trying to make a third person camera. So I was looking in to transform.lookat. But it doesn't work at all.
 public class CameraFollow : MonoBehaviour {
 
     public GameObject Player;
     public Vector3 Offset;
     public Transform PlayerLoc;
 
 
     void LateUpdate()
     {
         //transform.position = Player.transform.position + Offset;
     }
     void update()
     {
         transform.LookAt(PlayerLoc);
 
         
     }
    
     
 }
 
The only variable I am using is Playerloc. The other two I was experimenting with calculating and then change the camera position but I thought was too hard for me.
               Comment
              
 
               
               
               Best Answer 
              
 
              Answer by Hsni · Jun 28, 2018 at 12:09 PM
Check the spellings of Update, it's with capital 'U'
Your answer
 
 
             Follow this Question
Related Questions
Help With Camera rotation on X and Y Axis (Target Focused) 1 Answer
viewing on the Mouse Y axis not working. 0 Answers
Using DampSmooth in EulerAngle is affecting the Position.Z value of the gameObject. 0 Answers
How to recreate the Silent Hill 1 camera style? 0 Answers
Camera can't keep up with mouse when the FPS is low 0 Answers
 koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                