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

Creating a networked game

The first thing you'll need to facilitate your networked game is a NetworkManager component. This component handles most of the functionality associated with multiplayer settings and states, including connecting, disconnecting, hosting, joining, and spawning.

Create a new empty object in your lobby scene and name it NetworkManager. Add a NetworkManager component to it in Inspector:

Creating a networked game

Ensure that the first property, labeled Dont Destroy On Load, is checked. This property prevents the object that this component is attached to from being removed between scenes, so it will still be present in your game even if you switch to a ...

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