Adding a Third Person Character Controller to a scene
Once we’ve added the Unity Third Person Character Controller starter assets to a project, we can use them for our own scenes. In this recipe, we’ll create an empty scene, add a squashed Cube as the floor, and then add a controllable character with a linked camera by using a Prefab from our imported assets.
Figure 9.3: The scene we’ll build in this recipe, with a third-person character added to the scene
Getting ready
This project builds on the previous one – so either work on a copy of that one, or add the Unity Third Person Character Controller starter assets to another project using the steps from that recipe.
How to do it...
To add a Third Person Character Controller to a scene, perform the following steps:
- Create a new scene.
- Add a Cube to the scene named
Cube-ground
and scale it to be large and thin by setting Transform Scale to (20, 0.01, 20) in the Inspector...