#1 Open Source Unity Networking Library
Go to file
James Frowen 54a69bbc83
Fixing warning messages (#2030)
* disabling warning for empty method

* removing null propagation

null propagation in untiy can cause MissingReferenceException
2020-06-24 23:13:12 +02:00
.github Update main.yml 2020-04-27 10:23:07 -04:00
Assets Fixing warning messages (#2030) 2020-06-24 23:13:12 +02:00
doc Fixed small typo (#2019) 2020-06-19 06:14:17 -04:00
Packages Pipeline fix for performance tests (#1666) 2020-04-06 09:42:47 -05:00
ProjectSettings project settings with new version (#1995) 2020-06-14 11:40:38 +01:00
.editorconfig ci: Release only if tests pass (#1692) 2020-04-11 20:46:44 -05:00
.gitattributes ensure future c# code has consistent EOL 2019-01-05 10:09:05 -06:00
.gitignore restored 1bitpack_kenny metas 2020-04-19 17:32:51 -04:00
.releaserc.yml feat: Add version to package file (#1361) 2019-12-26 10:15:38 -06:00
appveyor.yml ci: Release only if tests pass (#1692) 2020-04-11 20:46:44 -05:00
CONTRIBUTING.md Update discord invite (#2025) 2020-06-23 10:11:16 +02:00
FUNDING.yml move the funding button to where github can find it 2019-12-13 06:42:15 -06:00
LICENSE Proper MIT license (#1431) 2020-01-13 11:38:34 +01:00
README.md doc: fixed typos in readme 2020-06-02 10:42:50 -04:00
setversion.ps1 fix build with appveyor warning (#1340) 2019-12-21 14:20:06 -06:00

Mirror Logo

Download Documentation Video Tutorial Forum Build status Coverage Lines of Code Discord release

Mirror is a high level Networking API for Unity, built on top of the low level Telepathy library.

Mirror is built and tested for MMO Scale Networking by the developers of uMMORPG, uSurvival and Cubica.

Mirror is optimized for ease of use and probability of success. Projects that use Mirror are small, concise and maintainable. uMMORPG was possible with <6000 lines of code. We needed a networking library that allows us to launch our games, period.

With Mirror, the Server & Client are ONE project (hence the name). Instead of having one code base for the server and one for the client, we simply use the same code for both of them.

  • [Server] / [Client] tags can be used for the server-only and client-only parts.
  • [Command]'s are used for Client->Server, and [ClientRpc] / [TargetRpc] for Server->Client communication.
  • [SyncVar]'s and SyncList's are used to automatically synchronize state.

What previously required 10.000 lines of code, now takes 1.000 lines of code. Therein lies the magic of Mirror.

Note: Mirror is based on Unity's abandoned UNET Networking system. We fixed it up and pushed it to MMO Scale.

Documentation

Check out our Documentation.

If you are migrating from UNET, then please check out our Migration Guide. Don't panic, it's very easy and won't take more than 5 minutes.

Installation

We recommend to download the most stable Mirror version from the Asset Store!

For the latest improvements, Download Mirror directly from this repository and extract it in your Assets folder.

Examples

We included several smaller example projects in Mirror.

For a fully polished, complete project example, consider uMMORPG or uSurvival.

Transports

Mirror supports many different low level networking transports:

Donations & Priority Support

Please support Mirror on GitHub. Priority support included!

Benchmarks

The Mirror Mantra

“Would you tell me, please, which way I ought to go from here?”
“That depends a good deal on where you want to get to," said the Cat.
"I dont much care where—“ said Alice.
“Then it doesnt matter which way you go,” said the Cat.
        - Alice in Wonderland (Lewis Carroll)

As Indie Developers, our #1 goal for Mirror is Ease of Use.

If you want to contribute, always follow the KISS principle. Everything needs to be as simple as possible. As result, the code will be stable, easy to understand, easy to modify and easy to maintain 5 years from now when our games are still running.

Pull Requests for bug fixes are always highly appreciated. New features will be considered very carefully and will only be merged if they are the most simple solution to the given problem.