Character Controllers In Unity

Introduction

This article demonstrates how to control the character in your Unity project.

Prerequisites

Unity Environment version 5.6.1

Add character in your project

Step 1

First, you have to open the Unity project. Create terrain, trees and water in your Scene View. The window will display like this.

 

Go to the Assets window. Select standard assets and double click on the standard assets.

 

Select the characters and double click on the characters.

 
 
Select the First person and double click on the First person.
 

Select the Prefabs and double click on the prefabs.

 

Select the FPS control.

 
 
Drag and drop the FPS control. The control appears into the terrain. Nothing is visible in the scene view.
 

Click on the “play” button. The game view will be displayed. Where we put the FPS control that place is zoom in like this,

 

Press “W” the character control is moving on front. And also you can press Upper aero key. Walking sound will be appear.

 
 
Press “S” the character control is go to the back /reverse. And also you can press down aero key.
 
 

Press “D” the character control is moving on right side. And also you can press right aero key.

 

Press “A” the character control is moving on left side. And also you can press left aero key.

 

If you want to change your character position, move the mouse. The position will be changed.

 

Press Shift + W, and the character will run on the terrain.

 

Summary

I hope, you understood how to control the character in your Unity project.

Up Next
    Ebook Download
    View all
    Learn
    View all