Dev Asset Collection

All Things That You Need to Build A Video Game
Menu
  • 2D
    • Characters
    • Environments
    • Fonts
    • GUI
    • Textures & Materials
  • 3D
    • Animations
    • Characters
    • Environments
    • GUI
    • Props
    • Vegetation
    • Vehicles
  • Add-Ons
    • Machine Learning
    • Services
  • Audio
    • Ambient
    • Music
    • Sound FX
  • Essentials
    • Tutorial Projects
  • Templates
    • Packs
    • Systems
    • Tutorials
  • Tools
    • AI
    • Animation
    • Audio
    • Camera
    • Game Toolkits
    • GUI
    • Input Management
    • Integration
    • Level Design
    • Localization
    • Modeling
    • Network
    • Painting
    • Particles & Effects
    • Physics
    • Sprite Management
    • Terrain
    • Utilities
    • Version Control
    • Video
    • Visual Scripting
  • VFX
    • Particles
    • Shaders
Home
Templates
Tutorials
Multiroom PvP Example – Dev Community

Multiroom PvP Example – Dev Community

Tsunami 17 February, 2022
Sending
User Rating 0 (0 votes)

For more detail this asset from the Unity Asset Store: Click Here

Multiroom PvP Example v1.03

Download Now

“Sharing is caring”

Since UNET deprecation, asset was rewritten for Mirror Networking. Mirror asset will need to be imported first Link

Multiroom PvP is an example (not complete project) on how to use Mirror/UNET to create multiple game rooms in a single Mirror/UNET server. It’s meant to be used as a learning resource to get you inspired or help to increase your knowledge of networking with UNET. To make networking development easier, [Easy Unet Packets] is also included in this package.

Why would someone try multi-room setup? (in general)
If a game room is small, it might make more sense to have multiple game rooms in a single server. Take for example a small 1 vs 1 game, which consumes about a 100 MB of RAM. You could only run 10 instances (rooms) in a 1 GB RAM server, which is wasteful and only allows 20 players to play concurrently. If all of your rooms are on one unity instance, you no longer have the overhead of Unity, and can run hundreds of game rooms. With this example, I’ve tested 200 players constantly running around, and here are the stats:
[200 players, 26% CPU, 184 MB RAM on a 5$/month VPS.]

If a game is relatively small, it’s easier to have things running in one server. This way, you don’t need to spend time working on master servers and synchronization between servers. It should give you more time to work on the actual gameplay, not the infrastructure of it. If you get lucky and your game becomes more popular, it’s easy to spread servers across multiple regions or to upgrade the VPS plan. If a need arises – no one stops you from having a master server managing your multi-room servers.

Is multi-room setup just for 1 vs 1 games?
No. Example only deals with 1 vs 1 game, but you can use similar technique to make 5 vs 5 game, 10 player deathmatch or something similar

What are the limitations of this method?
Ask yourself a question – does it make sense to copy the room multiple times in one server? Will it break something? (navmesh, terrain and etc.) For example, if terrain is large, it wouldn’t make sense to multiply it in the server. If your game relies on having AI (bots), can you make sure that your navmesh implementation works on duplicate rooms?

Warning: Focus was put into making this example as simple as possible, so it has no character animations or effects – just basic game mechanics for a 1 vs 1 game (see video attached).
Warning: It’s for people who are interested in self-hosting the server (not using Unity Multiplayer services)

 
 

Prev Article
Next Article

Related Articles

Mini-Games from Space! – Dev Community
Tsunami 17 July, 2020

Mini-Games from Space! – Dev Community

Sharp Edges – Dev Community
Tsunami 19 March, 2022

Sharp Edges – Dev Community

Action RPG Addon Module for GC2 – Dev Community
Tsunami 29 March, 2026

Action RPG Addon Module for GC2 – Dev Community

Klondike Solitaire – Complete Game Tutorial – Dev Community
Tsunami 10 March, 2022

Klondike Solitaire – Complete Game Tutorial – Dev Community

Leave a Reply Cancel Reply

Recent Posts

  • Astronaut Characters – Modular Animated Pack – Free Download
  • Pixel World – Ultimate Bundle – Free Download
  • Physics Hand – Free Download
  • RPG Editor: ORK Framework 3 (2025) – Dev Community
  • Soap – ScriptableObject Architecture Pattern – Dev Community

Dev Asset Collection

All Things That You Need to Build A Video Game
Copyright © 2026 Dev Asset Collection
Privacy Policy | Disclaimer | DMCA