O'Reilly logo

Mastering Oculus Rift Development by Jack Donovan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Defining player spawn points

Spawn points are represented as prefabs in any scene that a networked player can connect to. For our purposes, we want four different kinds of spawn point: one for the red team, one for the blue team, one for the yellow team, and one for the green team.

Create an empty game object in your Square_Day scene and name it RedSpawn. Position it so that it's in the center of the bottom floor of the red building, facing in the general direction of the doors:

Defining player spawn points

Save the RedSpawn object as a prefab by dragging it from the hierarchy into your Prefabs folder. Repeat this process by creating GreenSpawn, YellowSpawn, and BlueSpawn

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required