Setting up a simple scene
Let's jump right in and make our own multiplayer demo project. For instructional purposes, we'll start out with a very simple scene with a standard first-person camera and get the networking implemented. Then, we'll synchronize multiple players' avatars over the network. And then we'll share a game object, a bouncy ball, between players to play a game.
Creating a scene environment
To get set up, we will make a new scene with a ground plane and a cube and create a basic first-person character. Perform the following steps:
- Create a new scene by navigating to
File
|New Scene
. Then,File
|Save Scene As...
and name the sceneMultiPlayer
. - Remove the
Main Camera
and insert a copy of yourMeMyselfEye
prefab. Reset itsTransform
so it's positioned at the origin. - Create a new plane by navigating to
GameObject
|3D Object
|Plane
, rename itGroundPlane
, and reset itsTransform
using theTransform
component's gear icon |Reset
. Make the plane bigger by settingScale
to (10, 1...