"Mirror
( Forum )( Discord ) ( Docs ) ( Sponsors )
Stop worrying about networking. Because we do.
Mirror is a high level Networking library for Unity, compatible with different low level Transports. Mirror is for small indie games & large scale MMOs , made by the developers of uMMORPG and Cubica , used in major titles like Population: ONE . Mirror is optimized for ease of use & probability of success.
We needed a networking library that allows us to launch our games and survive the next decade.
Architecture
The Server & Client are ONE project in order to achieve an order of magnitude gain in productivity.
Making multiplayer games this way is fun & easy. Instead of MonoBehaviour, Mirror provides NetworkBehaviour components with:
â–£ [Server] / [Client] tags for server-only / client-only code
â–£ [Command] for Client->Server function calls
â–£ [ClientRpc] / [TargetRpc] for Server->Client function calls
â–£ [SyncVar] / SyncList to automatically sync variables from Server->Client.
Low Level Transports
â–£ KCP : reliable UDP
â–£ Telepathy : cross platform TCP
â–£ LiteNetLib : UDP
â–£ Ignorance : ENET UDP
â–£ Simple Websockets : Websockets
â–£ FizzySteam : SteamNetwork
â–£ Epic Transport : Free Relay
Getting Started
Get Unity 2019 LTS or newer, download Mirror, open one of the examples & press Play!
Check out our Documentation to learn how it all works.
Funding
Mirror is free & open source software funded by Donations. If you love it or need priority support, please consider supporting Mirror on GitHub :)
Benchmarks
â–£ Community CCU Tests
â–£ uMMORPG 480 CCU worst case test
Development & Contributing
Mirror is used in production by games ranging from indie projects to small MMOs that will run for a decade or more.
10 years from now if your players encounter a networking bug and most of our contributors already moved on, someone will need to fix it. Therefore it is of utmost importance for us to follow the KISS principle in order for our games to survive.
Keeping the next decade in mind, contributing fixes / tests / improvements is highly appreciated while new features have a low probability of being merged.
At this point, what we don't add to Mirror is more important than what we do add to it!
Build for the Metaverse, with Mirror Networking!
---
This asset uses Mirror under MIT License; kcp under MIT License; Mono.Cecil under MIT License; Telepathy under MIT License. See Third-Party Notice.txt file in package for details.