Set Up Player

Using Prefab

The easiest way is to drag a prefab from our folder

location of the prefab

This prefab has input finding settled down and have one real camera and two virtual cameras for 3D third person game.

How player looks like when you drag from prefab

You might find the Character slot empty. Drag your in-scene character (not prefab) in it and you will now be controlling the character. You can also set player character through code by calling the Change Character method in Player

For the Player Index, keep it to -1 for single player game. We will cover how to set up multiplayer in the multiplayer session.

Last updated