May 2018
Beginner
492 pages
11h 53m
English
It's not very interesting if the avatars don't move. That's the next piece of this puzzle.
You might think that we should have parented the avatar object under the player camera, (MeMyselfEye or FPSController ) and saved it as a Prefab, and then told the Network Manager to use that for spawns. But then, you'd end up with multiple cameras in the scene and controller scripts listening on user input. Not good.
We must have only one active player in the scene. Other players' avatars get spawned but are not controlled here. In other words, when the local player (and only the local player) gets spawned, its avatar should become a child of the camera. To achieve this, we will write a script:
Read now
Unlock full access