COMPLETE Unity Multiplayer Tutorial (Netcode for Game Objects)

preview_player
Показать описание
👇 Click on Show More

🔴 RELATED VIDEOS 🔴

💬 Let's learn how to get started with Netcode for Game Objects which is Unity's Official Multiplayer solution.
This is possibly the longest tutorial I've ever done and it's the only tutorial you need to get started making Multiplayer games!

00:00 Getting Started with Unity Multiplayer (Netcode for Game Objects)
02:19 Installing Netcode for Game Objects
03:18 NetworkManager
04:07 Unity Transport
04:41 Creating the Player
04:57 NetworkObject
05:19 Assigning the PlayerPrefab and NetworkPrefab List
06:19 First Quick Test
06:50 What is Server, Host, Client
08:11 Creating UI Buttons
09:23 NetworkManagerUI
11:08 Set Verbose Logging
11:27 Optional: Add Quantum Console to easily read the logs
12:22 Making a Build
13:01 Testing Host and Client
14:38 PlayerNetwork Script, Movement, NetworkBehaviour
17:42 NetworkTransform
18:56 Server-Client Authoritative, Ownership
20:20 ClientNetworkTransform
22:26 NetworkVariable
29:43 NetworkVariable with Custom Data Type, INetworkSerializable
35:06 ServerRpc
40:23 ClientRpc
43:09 Spawning and Despawning Network Objects
48:10 NetworkAnimator
51:58 Multiplayer Tools Package
55:13 How to Connect to a IP
56:45 Online Multiplayer Issues, Port Forwarding, NAT Punchthrough
59:58 Unity Gaming Services, Relay, Lobby, Mathmaker, Multiplay
01:00:52 More Resources
01:03:25 I hope you found the video helpful!

📝 Some Links are Affiliate links which means it costs the same to you and I get a nice commission.
🌍 Get Code Monkey on Steam!
👍 Interactive Tutorials, Complete Games and More!

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 #multiplayer #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

--------------------------------------------------------------------
- Other great Unity channels:
--------------------------------------------------------------------
Рекомендации по теме
Комментарии
Автор

💬 This was a ton of work so I really hope you like this video! Go ahead and build some multiplayer games! Thanks!
👇 Click on Show More


🔴 RELATED VIDEOS 🔴


CodeMonkeyUnity
Автор

How has this guy NOT been sponsored more? The content is absolutely brilliant, look at the time release from Netcode for Game Objects and this insanely comprehensive and easy to understand guide. I'm definitely going to be looking at getting CM's course, even if I don't fully complete them or ever look at them I know I'll be supporting one of the greatest resources to young aspiring game developers. So many thanks on behalf of so many people CM!

ThunderSnper
Автор

6:10 in newer version Unity doesn't accept individual prefabs but rather a scriptable object that contains prefabs. So right click-> create->net code->network prefab list

lime_
Автор

If you're having trouble with the new setup of NetworkManager's Network Prefabs Lists like I did, you need to add a NetworkPrefabsList to your project. You can do what I did and right click your Assets folder in the Project tab and click Create -> Netcode (was at the top for me) -> Network Prefabs List. Then you can add whatever Network Object to it and continue the tutorial like normal. Hope that helps.

bigedwerd
Автор

Thank you! The timing of this 1.0 release could not have been better and your prompt, and stunningly complete, tutorial is already saving me a ton of headaches.

apocello
Автор

Thank you so much for this! There's a severe lack of multi-player tutorials, specially of those that are free, and most importantly up to date. I was trying to send $10 with my comment but I forgot my password. I will donate when I get back home from work. Thanks again for all you do and continue the great work! We all appreciate you.

Breckdareck
Автор

Amazing is the effort you put to explain the whole unity multiplayer as soon as it launched!

evlnu
Автор

Dude, I've been trying to get this working for days now, and just stumbled upon your tutorial. First place where I've seen these topics actually make sense, and the steps are clear enough to follow. I hope the viewers support can help keep you going!

ChrisVranos
Автор

The effort and time you put in these videos is insane! This probably took atleast 50 hours of work (including everything)

marveIIus
Автор

I highly recommend adding ParrelSync. Developing multiplayer without it is remarkably harder (no more making builds for every test!)

chris.davidoff
Автор

Thank you for the tutorial!😊
To those who unable to get the client to move when switching to the third/3rd person character controller. I think, the problem is duplicating Player Input component by spawning 2 prefabs with it. There are two variants that fixed this for me:
1. Switch Actions under the Player Input component attached to PlayerArmature to DefaultInputs. To do this, remove Actions object what is currently there. It will propose you to create new one to replace empty space, click this btn and create new Actions with default settings by this flow.
2. Move Player Input component and StarterAssetsinputs from PlayerArmature object to separate one. In this case you will have in scene only 1 Player Input component and they will not conflict with each other. Also do not forget to make code changes from CM.

LibertyLegion
Автор

From the bottom of my heart, thank you for this gigantic work: I don't even dare to imagine the time it took you for the search for information, the tests and the editing. I had some knowledge on Mirror, I didn't have too many difficulties to follow. Armed with this new knowledge, I will be able to progress in this area.

jean-michel.houbre
Автор

Again, thank you so very much for this amazing content!

Breckdareck
Автор

Amazing! I wasnt expecting a 1h tutorial with this level of quality so fast.

joaopacheco
Автор

Just what i needed. I have been watching your videos for the past two years and trying to make my hobby as an indie a real thing. Your videos have been a great help thank you very much!

billis_miro
Автор

I figured out what makes your videos so good for me. It is the pacing. I tend to skip forward in videos because there's a lot of "filler". Here, every second something is happening is actually informative, and coding is sped up. Nice :D

WesleyOverdijk
Автор

Thankyou!
Not only do you tell us what to do, you explain it to us, which unlike most other tutorials, allows us to fully understand and do whatever we want with the knowledge instead of directly telling exactly what to do.
Once again, thankyou, this is very useful for me as a beginner testing out unity multiplayer.

matto
Автор

Thanks a lot
I have been trying to use Photon to make multiplayer games but now that this is released i was hyped and already seeing a video from you explaining all of it is just surreal. Keep going and don't feel down about yourself your doing amazing things most people can't.

mrb
Автор

I'm watching over and over, again and again; I believe this video not only helps me but many others like me. I would upvote this video as many times as I watch it.

roygatz
Автор

Just getting back into network programming. Great tutorial. Also, they are moving pretty fast. The Network Variable synchronization now also supports strings.

Archimagus