SkillAgentSearch skills...

Mirror

#1 Open Source Unity Networking Library

Install / Use

/learn @MirrorNetworking/Mirror
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Mirror Logo

<p align="center"> <a href="https://assetstore.unity.com/packages/tools/network/mirror-129321"><img src="https://img.shields.io/badge/download-brightgreen.svg?style=for-the-badge&logo=unity&colorA=363a4f&colorB=f5a97f" alt="Download"></a> <a href="https://github.com/MirrorNetworking/Mirror#made-with-mirror"><img src="https://img.shields.io/badge/showcase-brightgreen.svg?style=for-the-badge&logo=github&colorA=363a4f&colorB=f5a97f" alt="Showcase"></a> <a href="https://mirror-networking.gitbook.io/"><img src="https://img.shields.io/badge/docs-brightgreen.svg?style=for-the-badge&logo=gitbook&logoColor=white&colorA=363a4f&colorB=f5a97f" alt="Documentation"></a> <a href="https://forum.unity.com/threads/mirror-networking-for-unity-aka-hlapi-community-edition.425437/"><img src="https://img.shields.io/badge/forum-brightgreen.svg?style=for-the-badge&logo=unity&colorA=363a4f&colorB=f5a97f" alt="Forum"></a> <a href="https://trello.com/b/fgAE7Tud"><img src="https://img.shields.io/badge/roadmap-brightgreen.svg?style=for-the-badge&logo=trello&colorA=363a4f&colorB=f5a97f" alt="Roadmap"></a> <br> <a href="https://github.com/vis2k/Mirror/blob/master/LICENSE"><img src="https://img.shields.io/badge/License-MIT-brightgreen.svg?style=for-the-badge&colorA=363a4f&colorB=b7bdf8" alt="License: MIT"></a> <a href="https://ci.appveyor.com/project/vis2k73562/hlapi-community-edition/branch/mirror"><img src="https://img.shields.io/appveyor/ci/vis2k73562/hlapi-community-edition/Mirror.svg?style=for-the-badge&colorA=363a4f&colorB=b7bdf8" alt="Build"></a> <a href="https://github.com/vis2k/Mirror/releases/latest"><img src="https://img.shields.io/github/release/vis2k/Mirror.svg?style=for-the-badge&colorA=363a4f&colorB=b7bdf8" alt="release"></a> <a href="https://discordapp.com/invite/xVW4nU4C34"><img src="https://img.shields.io/discord/343440455738064897.svg?style=for-the-badge&colorA=363a4f&colorB=b7bdf8" alt="Discord"></a> </p>

It's only the dreamers who ever move mountains. mmos_conceptart

Mirror Networking

The #1 free open source game networking library for Unity 2019 / 2020 / 2021 / 2022 / 6.

Used in production by major hits like Population: ONE and over 1000 Steam Games.

Originally based on UNET: battle tested since 2014 for 10 years and counting!

Mirror is stable, modular & easy to use for all types of games, even small MMORPGs 🎮.

Made in 🇩🇪🇺🇸🇬🇧🇸🇬🇹🇼 with ❤️.


Features

Mirror comes with a wide variety of features to support all game genres.<br> Many of our features quickly became the norm across all Unity netcodes!<br>

| Feature | Description | Status | |-------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------| | 🎛 Transports | UDP, TCP, Websockets, Steam, Relay and more. | Stable | | 🪜 Interest Management | Spatial Hashing & Distance Checker to partition the world. | Stable | | ↗️ SyncDirection | Server & Client Authority - per component with one click. | Stable | | 🐌 Latency Simulation | Simulate latency, packet loss & jitter locally. | Stable | | 🧲 Batching | Minimize message overhead via batching automatically. | Stable | | 💌 RPCs & SyncVars | Synced vars and remote function calls built in & safe. | Stable | | 🙅‍♀️ Allocation Free | Free of runtime allocations and no GC (except Transports). | Stable | | 🛞 Transform & Physics | Transform & Physics sync built in. | Stable | | 👩‍🍼 Child Components | Put networked components on anything. | Stable | | 🪚️ IL Post Processing | Zero overhead [Rpcs] and [Commands] via IL post processing! | Stable | | ☁️ Two Click Hosting | (Optional) <a href="https://mirror-networking.gitbook.io/docs/hosting/edgegap-hosting-plugin-guide">Build & Push</a> directly from Unity Editor to the Cloud. | Stable | | | | | | 📏 Snapshot Interpolation | Perfectly smooth movement for all platforms & genres. | Stable | | 🔫 Lag Compensation | Roll back state to see what the player saw during input. | Beta | | 🔒 Encryption | Secure communication with end-to-end encryption. | Beta | | 🔒 Cheat Detection | Mirror Guard safely detects Melon Loader & more. | Beta | | 🚀 Unreliable Mode | Quake style Unreliable SyncMode for any component. | Development | | | | | | 🧙‍♂️ General Purpose | Mirror supports all genres for all your games! | | | 🧘‍♀️ Stable API | Long term (10 years) stability instead of new versions! | | 🔬 Battle Tested | Mirror serves over 100 million players. It just works! | | | 💴 Free & Open Source | MIT licensed without any restrictions to minimize risk! | | | ❤️ Community | Join our Discord with nearly 15.000 developers world wide! | | | 🧜🏻‍♀️ Long Term Support | Maintained since 2014 with optional LTS version! | | | | | | | 📐 Bitpacking | Optimized compression (bools as 1 bit etc.) | Researching | | 🏎 Prediction | Simulate Physics locally & apply server corrections. | Researching |


Architecture

The Server & Client are ONE project in order to achieve maximum productivity.

Simply use NetworkBehaviour instead of MonoBehaviour.

Making multiplayer games this way is fun & easy:

public class Player : NetworkBehaviour
{
    // Synced automatically
    [SyncVar] public int health = 100;
    
    // Lists, Dictionaries, Sets too
    SyncList<Item> inventory = new SyncList<Item>();
    
    // Server/Client-only code
    [Server] void LevelUp() {}
    [Client] void Animate() {}
    
    void Update()
    {
        // isServer/isClient for runtime checks
        if (isServer) Heal();
        if (isClient) Move();
    }
    
    // Zero over
View on GitHub
GitHub Stars6.1k
CategoryDevelopment
Updated16h ago
Forks848

Languages

C#

Security Score

100/100

Audited on Mar 28, 2026

No findings