Network Manager, Transport & Spawn
Network Manager is responsible for connecting and disconnecting, spawning , despawning , loading scenes , other operations. Its the core of any Mirror Multiplayer game.
Each scene has a network Manager , We will use this to connect to a session.
You can either start a local session or a relayed session.
Local session - This runs on localhost and you can join multiple instances using the same machine using tools like parallel sync
Note - You cannot play it with others online using localhost.
Relay session - This runs using Unity Relay and Relay transport, it generates a code for the session. You can start a relay session from the menu or from any of the gameplay scene itself.
After joining or creating a new session Network Manager spawns the User Player prefab, which is a empty gameobject with a UserPlayer component on it.
Read more about User Player component on the next page.
Read about transports on this page.
Last updated