Look At

Evidence

Script

using System.Collections;
using UnityEngine;

public class CameraLookAt : MonoBehaviour 
{
    public Transform target;

    void Update () 
    {
        transform.LookAt(target);
    }
}

Screencast

What I Learned

For this project I learned how to attach a script to a camera so that it looks at a certain object. This was definitely one of the more easier tutorials, as I didn’t have any big bumps like the first couple. One problem I had to solve was that I didn’t have the robot lab assets handy so I just used a simple sphere and plane. I also had to watch the video a couple times over to make sure I got all the details.

Leave a Reply

Your email address will not be published. Required fields are marked *