Learn Unity Multiplayer (FREE Complete Course, Netcode for Game Objects Unity Tutorial 2024)

preview_player
Показать описание
💬 Here is the Multiplayer Course! I really hope both of these FREE courses help you in your game dev journey! Hit the Like button!
👍 Learn to make awesome games step-by-step from start to finish.

🔴 RELATED VIDEOS 🔴

💬 Learn How to Make Multiplayer Games with Unity in this massive FREE course!
This is the followup to my singleplayer course, here we are going to pick up from where we left off and convert that game into Online Multiplayer.
We're going to build this using Unity's official multiplayer solution called Netcode for Game Objects.
Learn how to synchronize data across multiple clients, how to decide on Server Authoritative vs Client Authoritative, learn about RPCs and NetworkVariables, what data should be server-side and what can be client-side, learn how to make a Character Selection scene, Multiplayer Lobbies and connect your players together with Relay

This has been a ton of work so I really hope you will enjoy it!
Go ahead and hit the Like button and if you enjoy my teaching style check out my other paid courses.
My Turn Based Strategy course is the perfect follow up for this one. It dives even deeper into some more advanced topics to help you really reach the advanced level.

00:00:00 Intro, Overview
00:09:56 Final Game Preview
00:15:03 What you Should Know
00:17:24 Singleplayer Overview
00:22:37 Install Netcode and basic Setup
00:42:26 Sync Player Movement, Client Vs Server Auth
00:54:20 Sync Player Animations
00:59:11 Sync Delivery Manager
01:14:12 Fix Selected Counter Visual
01:20:20 Sync Pick up Objects
01:35:04 Sync Kitchen Object Parent
01:50:21 Sync Plates Counter
01:53:39 Sync Trash Counter
02:01:20 Sync Cutting Counter
02:11:10 Sync Stove Counter
02:28:52 Sync Plate Add Ingredients
02:34:47 Player collisions
02:45:04 Sync Game State
03:01:34 Sync Pause
03:11:16 Handle Disconnects
03:20:20 Handle Late Joins
03:29:44 Connection Scene Flow
03:56:57 Character Select Scene
04:37:34 Lobby
05:35:30 Relay
05:51:42 Game Server Hosting (Multiplay), Matchmaker, Vivox
05:55:09 Multiplayer Debug Tools
06:07:43 Singleplayer Option
06:11:16 Gamepad Test
06:15:19 Final Game
06:18:12 CONGRATULATIONS

If you have any questions post them in the comments and I'll do my best to answer them.

See you next time!

#unitytutorial #unity3d #gamedev

--------------------------------------------------------------------
Hello and Welcome!
I'm your Code Monkey and here you will learn everything about Game Development in Unity using C#.

I've been developing games for several years with 8 published games on Steam and now I'm sharing my knowledge to help you on your own game development journey.

I do Unity Tutorials on just about every topic, Unity Tutorials for Beginners and Unity Tutorials for Advanced users.
--------------------------------------------------------------------
Рекомендации по теме
Комментарии
Автор

💬 Here is the Multiplayer Course! I really hope both of these FREE courses help you in your game dev journey! Hit the Like button!
👍 Learn to make awesome games step-by-step from start to finish.


🔴 RELATED VIDEOS 🔴

🔴 NOTES AND UPDATES 🔴

CodeMonkeyUnity
Автор

CodeMonkey, you are a service to humanity. Thank you so much for making this world-class content freely available.

nucleartide
Автор

Been following you and your tutorials for years, and the Unity community couldn't have asked for a better teacher. We all hope for your continued success, and hope the time and effort you've put into these two tutorials pays you back several times over, Hugo. You deliver like no other content creator in this space.

ericf
Автор

Wow! This Unity multiplayer tutorial is an absolute gem! The amount of information packed into this 6-hour long video is astounding. I can't thank you enough for putting in the time and effort to create such an informative and comprehensive tutorial.

I've been struggling with understanding multiplayer functionality in Unity for a while now, but this tutorial has made it crystal clear. The way you explain the concepts and walk through each step is so easy to follow, even for beginners like me.

I appreciate how you break down complex ideas into simple terms and provide examples along the way. It's evident that you're passionate about sharing your knowledge and helping others in the community.

Thank you again for this outstanding tutorial. It's people like you who make the Unity community such a fantastic place to learn and grow.

qasimahamad
Автор

For anybody that may encounter the same error. For some reason i was getting an error on the client (for example: StoveCounter(1) tried to register with ScenePlacedObjects which already contains the same GlobalObjectIdHash" (This would happen on any of the counter objects in the scene and only happened on the client)). It fixed the issue if you go on the base counter and remove the Network Object and then re-add it. Idk why it randomly started doing that. Probably a bug that wasnt assignining new global IDs to the objects on the client therefor causing an error of duplicate IDs, but thats just my guess.

Slimjim
Автор

Thank you so much Code Monkey for this amazing journey. You are a legend. I learned a lot. I was not able to go full speed on this one but it's done now. That's what matters. Done and understood thanks to your teaching skills.
Both courses are extremely valuable for the community.
I hope you realize that with these free courses, you made a life changing move for some of us. For sure some people will access to a game dev career in a company or as an indie dev thanks to you.
My future as a hobbyist is brighter than ever.
Thanks a lot man!

goma
Автор

Mr. Code Monkey! You are the best Unity teacher. This is a TRUE :)
Thanks for your courses. I bought almost all your courses on Udemy and bought all your games on steam.

rrahll
Автор

as a solo developer, this is such an opportunity for me to make my dream come true. If my game starts to make a profit, I will definitely send you funds.❤

MrKingofTiger
Автор

The way you say "AWESOME" is soothing. Motivating as you go along a large tutorial..

blitzkreig
Автор

Hey CodeMonkey,
I don't comment much but I wanted to let you know even before these free courses, you've been a great help and inspiration to keep me going. You seem to always release a video just before I need a specific topic.
I've started my journey a couple months back and you're teachings have been pivotal. I'm still trying to find time to catch up to your breakneck output speed but man...keep em coming.
Hopefully when my studio takes off, I can pass it forward as you've done and cite you as one of my founding pillars.

FaustCodeIX
Автор

this playlist is like 9 and a half hours of tutorial. all for free. this is amazing code monkey thank you so much. oyure doing so many people such a favour completely for free

LoganGarnham
Автор

Dude you are a god sent. I’m still finishing your other tutorial (work and life consume a lot of time and I apply every teaching on my own project to really understand the concepts so it’s taking me a while) but in the moment I finish the other tutorial I’ll start with this one.

Just wanted to thank you for this incredible source of information, you are the best programmer out of the other game dev courses I’ve seen out there. I’ll support you buying other courses from you. Keep the good work!

Izlaw-nf
Автор

I am ready for this!!! Guys! You know what to do, let's make this the best 2 video series in game dev

forbiddenbox
Автор

1:50:08 🐒 at this point I can hear "Hello and welcome, I'm your Code Monkey" even when the video is paused. Love the course so far, even though have couple of questions I'll have to ask later if I don't find answers myself.

Vav
Автор

I found there some interesting future, I dont know do you know this, but can try this:

Go to Edit > Preferences > Scene View and there you can check mark on "Create Objects at Origin".

So with that you dont need to reset transform everytime when creating a new object.

bruceu
Автор

This is one of the best Unity tutorials I've ever seen, thank you

proethiopian
Автор

Thats Lot Of Efforts in This Video, You Making So Many Devs Life Easier thanks Hugo❤

GameScript-Tamil
Автор

Some Notes :
1:31:30 : this log is persistent since the previous course : Look rotation viewing vector is zero

By adding an if control you can get rid of that :
player.cs

if (_isWalking)
transform.forward = Vector3.Slerp(transform.forward, moveDirection, Time.deltaTime * rotationFactorPerFrame);

de-souzapatrice
Автор

Ok so I've hit my 1h mark for the course. Basically wanted to post a comment just because a nice intermission asking me how I am doing! I am doing great! Considering 1 month ago I was someone who knew veeery little about game dev I think I've come a long way in understanding how some of the cogs in game dev are working. And ALL thanks to you! What I have done is I have took your singleplayer course and finished it (1 and a half times XD), and THEN I took a bit different approach. I have started my own test game to really learn. What I did was make a concept for a game that is similar enough to your course that I can use the logic for making a game but different enough that I cannot fully refer to your course thus forcing me to use my brain in the max possible way. That allowed me to watch your course once again and really think about the ways you structure your games. You are a true GOLD and my master. My inspiration. I have made 1 "Full" (not really full but playable enough) demo game using that approach and now I have started this course directly on my own game. Still quite a lot of things different than here but I managed. If I hit a wall I will simply restart this course using KitchenChaos game I made and go from scratch to clarify, but so far, I looks like I understand enough to be able to apply the logic here to my game directly. I will prob put more comments in this video simply enough to raise visibility to it and help as much as I can. Once I finish this course I will of course go and pay for it cos you deserve it! And to all who were brave enough to read through this comment - GO TO STEAM AND WISHLIST ALL OF @CodeMonkeyUnity GAMES! I WANT TO SEE THOSE STATS RAISED BY ALOT AT THE END OF THE YEAR!!!

immitatedone
Автор

Chapter "Connection Scene Flow" is so important! Thank you for explaining everything to detail!

RealesLeben