- Home /
Unet handle rooms
In many online game, like fps, the game has many rooms and lobbies.
In Unet, I know NetworkLobbyManager, but it isn't what i want.
I want to make one server instance and it can handle all rooms and lobbies.
For example,
C and D in lobby
A and B in room 1,
E and F in room 2(match started)
so,
A and B in same waiting room scene,
E and F in same battle scene,
but C and D in lobby scene
Can i use unet api to setup server has these future? Or has another way without using third-party framework?
Answer by EpiFouloux · Jul 04, 2016 at 09:41 AM
You need to fully understand how the NetworkManager
and NetworkLobbyManager
work to create your custom scripts, and edit the behaviour.
Personnaly I don't use the lobby manager, I just created my own Network script inheriting of NetworkManager and changing its behavior.
Just do the same with the lobby script, and read the documentation to know which functions to override.
Your answer
![](https://koobas.hobune.stream/wayback/20220612084041im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Unity networking tutorial? 6 Answers
Network.Instantiate issues - GameObject ownership and network views? 0 Answers
How to watch in client applications what it is happening in the server one? 0 Answers
Network and Server options 0 Answers
Local multiplayer and Unity server multiplayer behave differently 0 Answers