Project
Beginner Gameplay Scripting
Look At
Tutorial
Beginner
5 Mins
Unity Technologies
Overview
You have completed 0% of this Tutorial.
1.
Look At
Summary
How to make a game object's transform face another's by using the LookAt function.
Language
English
Recommended Unity Versions
4
1.
Look At

CameraLookAt

using UnityEngine; using System.Collections; public class CameraLookAt : MonoBehaviour { public Transform target; void Update () { transform.LookAt(target); } }

Woohoo! You nailed this tutorial.
Continue rocking your Beginner Gameplay Scripting project.
Next Step:
Linear Interpolation
Tutorial
Beginner
10 Mins
Unity Technologies