Project
Roll-a-ball
Camera and Play Area
Tutorial
Beginner
10 Mins
Unity Technologies
Overview
You have completed 0% of this Tutorial.
1.
Moving the Camera
2.
Setting up the Play Area
Summary
Moving the camera relative to the player.
Language
English
Recommended Unity Versions
5
1.
Moving the Camera
Moving the camera relative to the player.

CameraController

using UnityEngine; using System.Collections; public class CameraController : MonoBehaviour { public GameObject player; private Vector3 offset; void Start () { offset = transform.position - player.transform.position; } void LateUpdate () { transform.position = player.transform.position + offset; } }

2.
Setting up the Play Area
Setting up the play area.

Woohoo! You nailed this tutorial.
Continue rocking your Roll-a-ball project.
Next Step:
Collecting, Scoring and Building the Game
Tutorial
Beginner
45 Mins
Unity Technologies