How to Build a Multiplayer Game with Unity + Mirror

  Рет қаралды 179,807

Shrine

Shrine

Күн бұрын

Пікірлер: 244
@murkorus7147
@murkorus7147 Жыл бұрын
If you're using this tutorial around the time of this comment, you maybe got an error similar to me: 6 errors when trying to hit play at 21:14 in the video. Something about a transport not being assigned. In the video, the Network Manager component automatically adds another component to the object and finds it, but it didn't do it in my version of unity and mirror (and maybe not in yours too). To fix this, go to your NetworkManager gameObject, in the inspector, click "Add Component", then search for "Telepathy Transport (Script)", and add it. In the Network Manager component on the same object you just added the Telepathy Transport component to, look for a setting called "Transport" (Probably around half-way down), drag and drop the Telepathy Transport (Script) component to that setting, and you should be good to go. :)
@WilliamClavier
@WilliamClavier 4 жыл бұрын
I wasn't expecting this series to be so new, I thought it was another tutorial from like a year or two ago
@AviatorXD
@AviatorXD 4 жыл бұрын
Finally someone making a good multiplayer tutorial for Unity! Thanks alot man!
@ShrineApp
@ShrineApp 4 жыл бұрын
Hope you enjoyed the first tutorial! You can join our Discord here: discord.shrine.app
@caspronauta
@caspronauta 4 жыл бұрын
Although I found the first video a little off-topic with all the networking background, I really enjoyed this one. Would you explain in detail the lag that can be seen? It seems a little excessive to me, but it could be due to debuggers or other Whatnots. I would appreciate more on this on future videos. Can not wait to see the next one!
@ShrineApp
@ShrineApp 4 жыл бұрын
@@caspronauta Glad to hear :) The actual network delay/lag in this is as minimal as it gets (since I'm running both clients on the same machine). There is some slight visual delay because I have 2 editor windows open + recording at 60fps
@sayvillegames
@sayvillegames 4 жыл бұрын
Great JOB
@sergius.of.nothing
@sergius.of.nothing 4 жыл бұрын
the ckecking of Client Authority checkbox on NetworkTransform was so fast, I completely missed it. So if anybody has issue with synching just check that that checkbox checked aha
@caiowcosta
@caiowcosta 4 жыл бұрын
Amazing tutorial, thank you! For those who are experiencing VSCode problems not finding the "Network Behavior" class and the "Mirror" namespace, go to the C# extension you installed and downgrade your version to 1.23.2, clicking on the gear and "installing another version..." and typing "1.23.2", for me it worked
@ImMrBigBigMac
@ImMrBigBigMac 4 жыл бұрын
tyty! was losing my mind over this one.
@sh0ckwav3_
@sh0ckwav3_ 4 жыл бұрын
Thank you so much.
@GregDunn
@GregDunn 2 жыл бұрын
If anyone is following along and getting an error about NetworkBehavior not being found... note that Mirror uses the British spelling and that's there's a u in there -- NetworkBehaviour
@rustyrishii
@rustyrishii 3 жыл бұрын
Holy shit man... it's really hard to believe that an amazing tool like ParrelSync is free. Absolute mad respect to whoever created that.
@sushiwaumai4773
@sushiwaumai4773 4 жыл бұрын
This tutorial is way better than the networking tutorial from Tom Weiland. You can actually understand the stuff. Great job!
@Tongyo42
@Tongyo42 4 жыл бұрын
I was watching a couple tutorials on mirror and I figured i got the basics but i was struggling a lot on this first step. This Hello World approach helps wonders. Thanks dude!
@RogueWorlds
@RogueWorlds 4 жыл бұрын
I'm glad you picked Mirror, there are already way too many photon tutorials
@ShrineApp
@ShrineApp 4 жыл бұрын
Agreed! And Mirror is definitely the way to go imo
@rikrishshrestha5421
@rikrishshrestha5421 4 жыл бұрын
Totally agreed, it's hard to find good mirror tutorial.
@tal5008
@tal5008 4 жыл бұрын
@@rikrishshrestha5421 but not for me lol
@rikrishshrestha5421
@rikrishshrestha5421 4 жыл бұрын
@@tal5008 you mean to say you've found some good mirror tutorial, any recommendations?
@ItsCodeRedYT
@ItsCodeRedYT 3 жыл бұрын
@@rikrishshrestha5421 dapper dino is pretty good
@FlorisChan
@FlorisChan 4 жыл бұрын
I can't explain how happy I am that I found your tutorials. I am genuinely emotional because of the quality of this tutorial. Thanks so much!!
@motorparadise
@motorparadise 3 жыл бұрын
I searched for Unity Multiplayer Mirror and Got Git in Bonus. Great Work. Great Explanation.
@pierrelamusse8350
@pierrelamusse8350 4 жыл бұрын
Great intro ! It has been 2 days that I am trying to find up to date and interesting tutorials on mirror. I think we have a winner !
@jdonaldsontcs
@jdonaldsontcs 4 жыл бұрын
I wish you the best of luck with this series! Do yourself a favor and write out a roadmap so that you can keep yourself on track. The scope you laid out in this video is large but man is it needed! I look forward to watching it!
@ShrineApp
@ShrineApp 4 жыл бұрын
Yep I have a rough roadmap in my head but I'll def keep that in mind. thanks for the kind words :)
@zack4383
@zack4383 3 жыл бұрын
the other tutorial i watched sounded like a foreign language 15 minutes in, I understood this fully throughout the entire half hour. thank you.
@devyncurley6311
@devyncurley6311 4 жыл бұрын
So well done! Thank you for putting in the effort for this, especially sharing how you use Parel Sync, and your set up on Visual Code.
@ShrineApp
@ShrineApp 4 жыл бұрын
Glad it was helpful!
@tuvbuv4491
@tuvbuv4491 3 жыл бұрын
I have been trying for the past 10hr to figure out Mirror and This is the only good multiplayer tutorial i have found yet
@Ayyouboss
@Ayyouboss 4 жыл бұрын
Your channel is just way too underrated. Great work!
@tamla9875
@tamla9875 3 жыл бұрын
Cuz his logo looks like shit
@cloudlessrainvisions3264
@cloudlessrainvisions3264 4 жыл бұрын
This is my favorite Mirror intro video! I think this should be added to the Mirror documentation!
@gamesinajar7577
@gamesinajar7577 4 жыл бұрын
Been waiting years for a good multiplayer tutorial in unity! This is perfect, thank you so much!
@sebasVarela
@sebasVarela 4 жыл бұрын
This is needed, a good multiplayer game tutorial in unity, your video is already in my favorites. thanks
@chatbear69
@chatbear69 4 жыл бұрын
Thank you for this series of videos on networking. I have learned more by watching 2 of your videos than I have learned in the past year. You are the man and please keep up the good work.
@tsumurireallll
@tsumurireallll 3 жыл бұрын
Great tutorial. I've never seen anybody credit Linus Torvalds when explaining Git before, and it was nice to see.
@Kusaji
@Kusaji 2 жыл бұрын
Great first video, will be watching the rest of the series. Thank you.
@Limofeus
@Limofeus 4 жыл бұрын
Gorgeous tutorial! I was struggling to make at least something with multiplayer and also had to waste a lot of time compiling the project, this video helped me to fix all of my issues! Great guide!
@spanishwithtyler
@spanishwithtyler 2 жыл бұрын
So, so helpful! I am just beginning to learn how Mirror works, and this video was perfect!
@adelinebrow3557
@adelinebrow3557 4 жыл бұрын
Great tutorial! Please make sure to continue the series to the end 👍
@hasi-bhasan3448
@hasi-bhasan3448 4 жыл бұрын
I hope this series gets continued, there are so many videos, that just keeps doing stuff, more like copy paste. But this video is amazing! Kudos!
@jaumeivars
@jaumeivars 3 жыл бұрын
Mirror added your tutorials to its documentation tutorials!
@meytristeed1525
@meytristeed1525 4 жыл бұрын
Can't wait for the next part!
@frederickfreund1957
@frederickfreund1957 3 жыл бұрын
Thx a lot for that video! Very good quality and very helpful. I also like, that you introduce all the tools in this video. For my part I didnt hear of ParrelSync before and it seems to be super useful!
@witch-doctor
@witch-doctor 4 жыл бұрын
Many thanks! I'm amazed at how fast I got this multiplayer thing working thanks to you!
@Devir666
@Devir666 4 жыл бұрын
duuuude. awesome. I think you refreshed the tutorials of mirror, you picked up a better way for conducting the network idea, and all the preparation with github, parrelsync and asset store is fast and well done. (the git part is very begginer-friendly) I gonna see it all. thanks!
@derekrocco4344
@derekrocco4344 2 жыл бұрын
Amazing tutorial! Thanks for setting this up! Love seeing insights into others' dev envs alongside explanations of how these systems work - ParrelSync is a great inclusion here!
@madamutzsar
@madamutzsar 4 жыл бұрын
great video, you're doing a fine job explaining things. I'm going to watch the rest of what you've uploaded and I look forward to more! :D
@GingerNingerish
@GingerNingerish 4 жыл бұрын
This tutorial is so well structured and clearly explained.
@xGAMER-xc4tm
@xGAMER-xc4tm 3 жыл бұрын
im rly a beginner in this but with this tutorial i think i could make my dream game
@rodgermccallister1606
@rodgermccallister1606 2 жыл бұрын
Absolutely fantastic! Exactly the guide I needed to get started :)
@kamleshk267
@kamleshk267 4 жыл бұрын
Oh god! This is the best finally...
@randyh3761
@randyh3761 3 жыл бұрын
Excellent! Was a huge help and great jump-start to a bare-bones multiplayer setup
@Ivcifer
@Ivcifer 4 жыл бұрын
you are a gentleman and a scholar.
@李晨-w9q
@李晨-w9q 4 жыл бұрын
Very good tutorial. I benefit a lot as a junior game developer. Thanks!
@Cellfan
@Cellfan 4 жыл бұрын
Thank you very much for the work you have put into all of this! Its amazing, good pace! Please keep it up :)
@SatyamKumarGuptaBME
@SatyamKumarGuptaBME Жыл бұрын
This was really helpful, thank you so much, for such a nice tutorial
@NelsonSKA
@NelsonSKA 2 жыл бұрын
Great Tutorial!!!
@brainshack9077
@brainshack9077 3 жыл бұрын
Dots is like Fusion energy, always at least a year away :D
@tibiasurvival4307
@tibiasurvival4307 3 жыл бұрын
Straight to the point, nice tuto!
@unity_with_timoteo
@unity_with_timoteo 4 жыл бұрын
New sub here. i was looking for that! I cant watch now but i will soon!!!! Keep going man.
@marshallwho
@marshallwho 3 жыл бұрын
It was perfect tutorial for me all the error fixing and stuff perfect ! really liked it
@dil.e_musafir
@dil.e_musafir 2 жыл бұрын
Awesome Tutorial!!!!!🔥🔥🔥🔥
@sininenhaitari6650
@sininenhaitari6650 4 жыл бұрын
Really good looking stuff! Keep it up!
@ArranAsh
@ArranAsh 3 жыл бұрын
Thanks a lot, really helpful guide on getting started
@AlexanderZotov
@AlexanderZotov 3 жыл бұрын
This is just perfect!
@harsshtshah1051
@harsshtshah1051 3 жыл бұрын
Hello, I am facing an issue, I am unable to use ' using mirror; ' command as shown in the video. 18:50 Any idea what should I do?
@96idgaf
@96idgaf 3 жыл бұрын
using Mirror; Capital Letters Matter ;)
@sakul_the_one4821
@sakul_the_one4821 3 жыл бұрын
Thx for this epic Totorial, it helped really!
@rus89
@rus89 3 жыл бұрын
Amazing tutorial. Thanks for the time and effort you put into this.
@vimukthikulasekara2109
@vimukthikulasekara2109 3 жыл бұрын
thanks man this video is awsome this helps me a lot...............
@RugbugRedfern
@RugbugRedfern 4 жыл бұрын
Are you ever going to cover steam implementation? Lobbies/friends/dedicated server hosting?
@ShrineApp
@ShrineApp 4 жыл бұрын
Yep I will have vids about integrating with Steam for friends list, leaderboards, and matchmaking/lobbies. As for dedicated hosting, I'll cover a few different cloud providers
@RugbugRedfern
@RugbugRedfern 4 жыл бұрын
@@ShrineApp Very cool! Looking forward to this series. There aren't any covering steam and mirror in-depth at the moment, and it's been a little difficult to figure out.
@mikelanimations138
@mikelanimations138 3 жыл бұрын
your game is good. I didn't expect to see you here.
@RugbugRedfern
@RugbugRedfern 3 жыл бұрын
@@mikelanimations138 thanks dude :)
@duwangchew
@duwangchew 3 жыл бұрын
Great video, now I don't have to fail at university and finally get a degree.
@jackbrown9791
@jackbrown9791 4 жыл бұрын
Looking forward to the next one 😁😁😃
@washburnlane
@washburnlane 4 жыл бұрын
Outstanding, thank you!
@techinspired5628
@techinspired5628 3 жыл бұрын
Bro I am waiting for your new videos on this topic. Please upload it as soon as possible. It's my humble request 😁 Thank you 👍
@onefoxstudio
@onefoxstudio 4 жыл бұрын
That is fuuuucking awesome ! ParrelSyncwoooooooooo
@sumitcutevil9260
@sumitcutevil9260 3 жыл бұрын
tysm m gettting started helps a lot
@Epic3dPro
@Epic3dPro 4 жыл бұрын
Awesome, thanks for the tutorial
@ColorfullHD
@ColorfullHD 3 жыл бұрын
Great tutorial, thanks!
@ayan3789
@ayan3789 4 жыл бұрын
it's a really good tutorial! show him some love by subscribing! great job!
@dan-mechanics2014
@dan-mechanics2014 3 жыл бұрын
Amazing tutorials
@unkillablespirits8582
@unkillablespirits8582 2 жыл бұрын
Im following this tutorial to the end , just wanna say , when i made the clone i had to open the scene in the original editor it wasnt just automatically open like yours but it connected
@ShinichiKudoQatnip
@ShinichiKudoQatnip 4 жыл бұрын
Subscribed and so thankful 🤗❤️ I seriously want to get rid of my reliance on photon
@piztech5168
@piztech5168 3 жыл бұрын
Is it okay if I don't set up Git and backup my documents in Github? If so, is it really necessary and will be used later on other tutorials? I just really prefer not to do it, I'm just trying to learn and it's already too complex for me Edit: Yeah nvm, I actually don't have to do it which is good for me. Also, great tuts man, clear explanation and very beginner friendly
@3mrxD
@3mrxD 3 жыл бұрын
thanks for the content!
@MaGiStReall
@MaGiStReall 4 жыл бұрын
Amazing! Keep it up
@dshreenath360
@dshreenath360 3 жыл бұрын
is it possible to make a host migration for mirror and that to without any time delay ? Please answer me. thank you
@marcusferron
@marcusferron 4 жыл бұрын
Very Good tutorial!!!
@aleksandarglisic1794
@aleksandarglisic1794 4 жыл бұрын
Perfect Tutorial :)
@lucadallavilla9720
@lucadallavilla9720 4 жыл бұрын
Hello. Thx for the vid. Just little problem: I was able to join with 2 devices when they both connected on the same LAN, but not when on different. May you help me? I'd be so grateful!
@ShrineApp
@ShrineApp 4 жыл бұрын
See my dedicated server vid.
@lucastheys
@lucastheys 2 жыл бұрын
I think you need to port forward your router you can do this online just search your internet provider + port forward
@amandalinn3618
@amandalinn3618 Жыл бұрын
Amazing tutorial and I love ParrelSync! I remember you having other videos but they disappeared. do you know where they went?
@dasjustinn
@dasjustinn 4 жыл бұрын
Cool
@ancolia8772
@ancolia8772 3 жыл бұрын
3:35 so were things updated?
@morybest
@morybest 2 жыл бұрын
very good
@masoli2321
@masoli2321 4 жыл бұрын
thx for the vid helped a lot
@sandudianaelena1013
@sandudianaelena1013 4 жыл бұрын
Hi! I watched the multiplayer tutorial and I have a question. I have two players. One of them jumps. In the second player's window, the first player is shaking when he's trying to jump. But if both of them are walking,, everything looks smooth in both windows. Do you have any ideas?
@zukarimoto_q
@zukarimoto_q 2 жыл бұрын
Thank you for this tutorial series! I am trying to implement your workflow into an existing single player project with a first person controller I got from the asset store (movement + cameraLook). Can I simply change the existing scripts from MonoBehaviour to NetworkBehaviour, and add the 'if (isLocalPlayer)' statement before everything that handles my existing functions?
@magicpixeltree
@magicpixeltree 4 жыл бұрын
Awesome
@gamedoughhh
@gamedoughhh 3 жыл бұрын
Wonder is it support the cross platform progress and IAP? Thx
@ErenBR562
@ErenBR562 2 жыл бұрын
Hello, I'm creating an FPS camera and using the FirstPersonController script from Unity's StandardAssets, it works almost perfectly, however, do you know why when I activate the vertical mouse clamp, on mobile it keeps giving a nan nan nan problem on the camera? When I disable the clamp, the error disappears, however, the clamp is gone. Thank you!
@StephenAllenGames
@StephenAllenGames 4 жыл бұрын
Hello World! :D (you'l understand if you watch to the end of the video)
@grzegorzwierzbicki8150
@grzegorzwierzbicki8150 2 жыл бұрын
Hello, could you help me? I set up a new project (2D), imported mirror and parrelsync. When runnig a game I do not see the table with host/Client. Thanks
@keyk2040
@keyk2040 4 жыл бұрын
that was a great tutorial got a new subscriber here, i also have a question how do you join someone else via IP-Adresses i tried it once with my normal IP but that didn't work
@ShrineApp
@ShrineApp 4 жыл бұрын
You’ll have to set up port forwarding
@keyk2040
@keyk2040 4 жыл бұрын
@@ShrineApp oh ok i'll look into it thank you
@kevinp2540
@kevinp2540 3 жыл бұрын
Nice video! Do you think now it's better to start a multiplayer project with Mirror or use MLAPI (which is now owned by Unity)?
@djjimmaster8261
@djjimmaster8261 3 жыл бұрын
I can't get the cube to move on the client side? It looks like it's trying to move, but is being held back. The server side works fine
@mickmickymick6927
@mickmickymick6927 3 жыл бұрын
May I suggest adding the playlist URL to the description, it's easier than having to go search for it each time.
@Prolu7
@Prolu7 3 жыл бұрын
For some reason for me this only works in Editor... When I build the project I cannnot connect from a second Instance of the "game" Edit: the two instances of the game are run on the same pc, but my Port should be open anyway.
@saturnjr9136
@saturnjr9136 3 жыл бұрын
So how would I parent a camera to the player so its first person? Does the camera also need a networkidentity?
@Moreno6000
@Moreno6000 3 жыл бұрын
21:21 so why is it not moving because I know my movement script is right so it must be something with being not a localplayer even though it's a localplayer because when I do if(!isLocalPlayer) than it works but that's not what i want
@Celcious
@Celcious 3 жыл бұрын
did you add "using Mirror;" "NetworkIdentity identity;" "identity = GetComponent();" "if (identity.isLocalPlayer){ ur code here }"
@Moreno6000
@Moreno6000 3 жыл бұрын
@@Celcious i found why because i didn't put the if statement on the correct place but now when i try it with hamachi my friends can't join
@Celcious
@Celcious 3 жыл бұрын
@@Moreno6000 well the movement for me is client side
@halo3forge
@halo3forge 4 жыл бұрын
Great video, you explained everything very well. Quick question: If we are creating a game with 100 player functionality should we use PlayFab or self host with Easy-Wi or Pterodactyl? In terms or scalability I am thinking FlayFab makes more sense, that way we can focus on game development and not maintaining servers. What do you you think is the best route? We want an option that is scalable.
@ShrineApp
@ShrineApp 4 жыл бұрын
I would use PlayFab or GameLift
@blushingbutterfly7742
@blushingbutterfly7742 4 жыл бұрын
thank you so much!
@sqw33k
@sqw33k 3 жыл бұрын
Thanks for the tip about ParrelSync! I have a slight problem with it though and it is that the execution of either non selected copy of Unity seems to "fall behind". As in, the (selected) one is sending data in FixedUpdate but the server isn't handling it at the same rate in it's FixedUpdate. If I switch it catches up and now consumes data faster than the other is sending. I believe this to be related to windows not giving enough resources to handle both applications at equal priority but I am not sure and welcome any ideas on how to fix this. :)
@CryptoKaiwen
@CryptoKaiwen 2 жыл бұрын
So about 3 minutes in when you're explaining the compatible version of Mirror 2018-19. Would Unity version 2019.4.12f1 LTS support Mirror Ok? Many thanks
VIP ACCESS
00:47
Natan por Aí
Рет қаралды 15 МЛН
Smart Sigma Kid #funny #sigma
00:33
CRAZY GREAPA
Рет қаралды 37 МЛН
Quando A Diferença De Altura É Muito Grande 😲😂
00:12
Mari Maria
Рет қаралды 35 МЛН
Dear Game Developers, Stop Messing This Up!
22:19
Jonas Tyroller
Рет қаралды 750 М.
Multiplayer Game Architecture in Unity
15:21
Shrine
Рет қаралды 157 М.
Programming a multiplayer game from scratch in 7 DAYS
18:28
Making MULTIPLAYER Games has never been EASIER!
12:49
Code Monkey
Рет қаралды 85 М.
Creating a window - Software from Scratch
1:04:12
Muukid
Рет қаралды 155 М.
When Optimisations Work, But for the Wrong Reasons
22:19
SimonDev
Рет қаралды 1,1 МЛН
So You Think You Know Git - FOSDEM 2024
47:00
GitButler
Рет қаралды 1,3 МЛН