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 to get the networking implemented. Then, we'll adapt it to VR.
To get set up, we will make a new scene with a ground plane and a cube, then we'll create a basic first-person character.
Create a new scene by navigating to File | New Scene. Then, File | Save Scene As... and name the scene MultiPlayer
.
Create a new plane by navigating to GameObject | 3D Object | Plane, rename it GroundPlane
, and reset its Transform using the Transform component's gear icon | Reset. Make the plane bigger by setting Scale to (10, 1, 10
). Perform the following steps:
Make
GroundPlane
easier on the eyes with a gray material. Navigate to Assets | Create | Material, name itGray
, click on its Albedo color chip, and select a neutral gray, such as RGB (150, 150, 150). Drag theGray
material ontoGroundPlane...