Game Development Reference
In-Depth Information
To define multiple waypoints for a path, enter the total number of waypoints to
create inside the Node Count field and then select each node gizmo in the Scene
viewport that transforms each into place. Notice the curved path drawn between
the points that outline the path for the camera to take:
Defining the waypoints for a path
Then, to make the camera follow the path at runtime, add the following code sample
5-13 script to the camera :
using UnityEngine;
using System.Collections;
public class cam_itween_mover : MonoBehaviour
{
// Use this for initialization
void Start ()
{
 
Search WWH ::




Custom Search