Learn how to make a multiplayer game in Unity using Netcode for Gameobjects.

ᐅGet the full Source Code Bundle to my Unity Tutorials 🤓

►📥 Get the Source Code 📥

Wishlist my new game BUMBI on Steam!

If you liked this video please like and subscribe as it helps me a lot, and consider joining my Patreon or becoming a YouTube Member 🙂

My mic has a bit of static (barely noticeable), I’ll have that fixed for the next videos.

⚙️ Set Up ⚙️
(if doesn’t work add through git)
►Multiplayer Tools
►Parallel Sync

🔗 Video Links 🔗
►Next Video In Series: Easy Game Server Hosting and Matchmaking with Unity Tutorial

►Unity Netcode Documentation

►Unity Multiplayer Tools Documentation

►Networked Object Pooling

►Networked Singleton

►Boss Room Sample

►Galactic Kittens Sample

►Eating Sound Effect

In this video I cover how to get started in Networking and Multiplayer games with the Unity game engine. We’ll cover the new Netcode for Gameobjects 1.2.0 and Unity Transport. In the next part of the series we will explore Unity Gaming Services (UGS) and upload our build to the cloud along with implement matchmaking.

This video covers making a simple slither.io example to get familiarity with networking concepts, along with going over basic terminology. We first set up the scene by installing the necessary packages, we then add a NetworkManager and select our UnityTransport protocol, then we go ahead and create a NetworkObject of our Player and use the ClientNetworkTransform to move the player with client authoritative movement, we then create some helper functions to start the server and clients, later we create the tails so that each client can have the tails sync locally and they don’t have to be sent over the network which can result in a lot of bandwidth (we use NetworkVariables to store the player length and synchronize it across the instances), we then create our food Networked Object and instantiate it with a Network Object Pool, we then shoot out an event for the local client to update their UI, and we create a Singleton that can also be networked that plays from an AudioSource when the local player has collided with a good, then we go over player collision, ServerRPCs, ClientRPCs, Server Authoritative Movement, and finally we limit the amount of players in the map through the ConnectionApprovalHandler.

🤝 Support Me 🤝

►⏱️ Timestamps ⏱️
0:00 Intro
1:38 Terminology
13:22 Set Up
18:25 Network Manager
29:45 Client Authoritative Movement
45:48 Start Network Helper Function
48:46 Network Animator
51:39 Sync Tail and NetworkVariable
1:10:06 Food Networked Object
1:16:43 Food Spawner and Object Pool
1:31:03 Local Client UI
1:36:40 Audio Manager Singleton
1:41:00 Player Collision, ServerRPCs, ClientRPCs
2:08:22 Server Authoritative Movement
2:13:11 Connection Approval Handler
2:18:46 Code Recap
2:28:33 Network Profiler and Debug Tools
2:34:48 Outro


❯❯❯ My Links ❮❮❮
💗 Patreon 💗

💬 Discord Server 💬

🐦 Twitter 🐦

📚 Facebook 📚

👍 Like and Subscribe! 👍

🖥️ Computer Setup 🖥️
*As an Amazon Associate I earn from qualifying purchases.

►Gameplay Videos Shown:
ᐅApex Legends:
ᐅAmong Us:
ᐅGunfire Reborn:
ᐅFall Guys:

Thumbnail Snail from slither.io