In this step you add a raycaster to the camera.
For other steps in this exercise, see Exercise 4: Add Functionality.
To add a raycaster to the camera:
- From Unity, open the Main.unity file.
- From the Hierarchy view, select the Main Camera object.
- Select Create > Create Empty Child.
- From the Inspector view, change the name of the empty object to Raycaster.
- Click the Add Component button and select Scripts > Raycaster. This will allow you to cast a ray at a target.