( 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.
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
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.
Mirror is free & open source software funded by Donations. If you love it or need priority support, please consider supporting Mirror on GitHub :)
▣ 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.