How mirrornetworking/mirror works
Mirror is a Unity game-networking library. Its principal workflow is a game integrating the networking API, establishing client/server communication through a chosen transport, and synchronizing game state and remote calls. The tree supports paths for the main runtime areas, and the README documents networking features; however, no source excerpts were provided, so internal call relationships are left unverified rather than inferred. The graph preserves the documented capabilities, including interest management, interpolation, lag compensation, and discovery.
Main entry points: NetworkServer.cs Network Server · NetworkBehaviour.cs Network Behaviours · NetworkManager.cs Network Manager · NetworkClient.cs Network Client
Components 18
Game API
- Network Manager
Assets/Mirror/Core/NetworkManager.cs - Network Behaviours
Assets/Mirror/Core/NetworkBehaviour.cs
Network Runtime
- Network Client
Assets/Mirror/Core/NetworkClient.cs - Network Server
Assets/Mirror/Core/NetworkServer.cs - Connections
Assets/Mirror/Core/NetworkConnection.cs - Transport Layer
Assets/Mirror/Core/Transport.cs
State Synchronization
- Messages & RPCs
Assets/Mirror/Core/NetworkMessages.cs - Sync Objects
Assets/Mirror/Core/SyncObject.cs - Message Batching
Assets/Mirror/Core/Batching/Batcher.cs - Snapshot Interpolation
Assets/Mirror/Core/SnapshotInterpolation/SnapshotInterpolation.cs
Networking Features
- Interest Management
Assets/Mirror/Core/InterestManagement.cs - Network Discovery
Assets/Mirror/Components/Discovery/NetworkDiscoveryBase.cs - Authentication
Assets/Mirror/Core/NetworkAuthenticator.cs - Lag Compensation
Assets/Mirror/Components/LagCompensation/LagCompensator.cs - Transform & Physics
Assets/Mirror/Components/NetworkTransform/NetworkTransformBase.cs - Prediction
Assets/Mirror/Core/Prediction/Prediction.cs
Other components
- Unity Game
- Transport Provider
Connections 18
- Unity Game → Network Manager: configures
- Network Manager → Network Client: starts
- Network Manager → Network Server: starts
- Network Client → Connections: uses
- Network Server → Connections: uses
- Network Client → Transport Layer: communicates via
- Network Server → Transport Layer: communicates via
- Transport Layer → Transport Provider: adapts
- Network Behaviours → Messages & RPCs: issues
- Network Behaviours → Sync Objects: synchronizes
- Messages & RPCs → Message Batching: batches
- Network Client → Snapshot Interpolation: uses
- Network Server → Interest Management: filters by
- Network Manager → Authentication: authenticates
- Unity Game → Network Discovery: discovers servers
- Network Behaviours → Transform & Physics: synchronizes
- Network Behaviours → Prediction: uses
- Network Server → Lag Compensation: supports rollback