Legacy Documentation: Version 2017.2 (Go to current version)
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.


Suggest a change


Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.


Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.



public var lobbyPlayerPrefab: Networking.NetworkLobbyPlayer;
public Networking.NetworkLobbyPlayer lobbyPlayerPrefab;


This is the prefab of the player to be created in the LobbyScene.

This prefab must have a NetworkLobbyPlayer component on it.

In the lobby scene, this will be the active player object, but in other scenes while the game is running, this will be replaced by a player object created from the GamePlayerPrefab. But once returned to the lobby scene this will again become the active player object.

This can be used to store user data that persists for the lifetime of the session, such as color choices or weapon choices.

Did you find this page useful? Please give it a rating: