Unity Multiplayer in 3 minutes

Поделиться
HTML-код
  • Опубликовано: 19 дек 2024

Комментарии • 110

  • @streetpartying
    @streetpartying 5 месяцев назад +12

    Your videos are really good so far! I expect your channel will get really popular if you keep this up. I especially appreciate the short, concise overviews, instead of having to sit through an hour long video

    • @rootbindev
      @rootbindev  5 месяцев назад

      @@streetpartying Thank you!

  • @abhilashlr9259
    @abhilashlr9259 5 месяцев назад +13

    Damn you actually did a pretty decent job in 3 minutes!

    • @rootbindev
      @rootbindev  5 месяцев назад

      Thank you very much!

  • @Jam-ht2ky
    @Jam-ht2ky 7 месяцев назад +16

    Amazing video, would appreciate an extended tutorial.

    • @rootbindev
      @rootbindev  7 месяцев назад +7

      will do! :)

    • @codetheredone
      @codetheredone 7 месяцев назад +2

      Same, great and would like more and extended!

    • @MegaGangsta4life
      @MegaGangsta4life Месяц назад

      FreedomCode has some great tutorials on Unity netcode and Blackthornprod has gret tutorials for Photon Server (multiplayer solution thats VERY good)
      The free version has host up to 100 concurrent players

  • @JulianCiszek
    @JulianCiszek Месяц назад +2

    Also, quite surprisingly even though everyone thinks im a nerd at school, this did kinda make everyone want to be my friend, cuz then they could "Test" my game during class as opposed to working.

  • @dertobbe1176
    @dertobbe1176 4 месяца назад +6

    I agree with the others here. Pls do a tutorial on multiplayer. Just detailed enough to reproduce the Base Concept. I started learning c # last year and I am far away from doing multiplayer stuff. Would highly appreciate your affort 🙏

    • @rootbindev
      @rootbindev  4 месяца назад +1

      Thank you i might do that soon!

    • @dertobbe1176
      @dertobbe1176 4 месяца назад

      @@rootbindev thank you my mate 👌

  • @codetheredone
    @codetheredone 7 месяцев назад +5

    Pretty cool that it is in Unity 6!

  • @diegogomez87108
    @diegogomez87108 3 месяца назад

    Amazing and super clear tutorial. I have experience with ue5 networking and I wanted a straight forward guide on how to do it in unity

    • @rootbindev
      @rootbindev  3 месяца назад +1

      thank you, I'm glad I could help!

  • @be1tube
    @be1tube 7 месяцев назад +5

    2:58 Twist ending!

  • @pilottim136
    @pilottim136 4 месяца назад +1

    Other comment from me again;
    I just looked at your profile, and noticed you did tutorials that I will need for my future projects!
    (I have subscribed! Thank you!!!)

    • @rootbindev
      @rootbindev  4 месяца назад

      thank you very much!

  • @abdullahnaim10
    @abdullahnaim10 27 дней назад +1

    So many of us developers have that same ending as this one 😂

  • @JulianCiszek
    @JulianCiszek Месяц назад

    Hey, I love your tutorials! I might suggest showing how to input a ip address to show how to use it in a realistic way so you can play on the same subnet, because I followed this for my unity multiplayer game in 3d, but that was a major thing that this lacked, showing how to create a basic starting screen, and being able to input an ip adress

    • @rootbindev
      @rootbindev  Месяц назад

      Thank you very much! I would suggest using Unity Relay instead, I have a tutorial on that! It is not very often you make games today where you play on the same subnet or have to enter a specific IP address.

  • @mohammedelwardighi9426
    @mohammedelwardighi9426 4 месяца назад +1

    Hi, I've completed this section, but it's only for local multiplayer. Could you help convert it to online multiplayer, not local?

    • @rootbindev
      @rootbindev  4 месяца назад +1

      yes I can! either you can join my discord where I can help you, or you can watch my latest video about Unity Relay :)

  • @justinmiguel4630
    @justinmiguel4630 5 месяцев назад +1

    What if you just used Photon? Do you know if i still have to do this?

    • @rootbindev
      @rootbindev  5 месяцев назад +2

      If you use Photon you can ignore this tutorial. Photon is another networking library that is not the official Unity solution

    • @justinmiguel4630
      @justinmiguel4630 5 месяцев назад +1

      @@rootbindev thank you for the reply

    • @Glasraf
      @Glasraf 3 месяца назад

      Hii I see your video and another video I'm programmer inC# 3years now but I never try multiplayer but I did like you do and all work goi but I do in my code player code network and do that in I don't remember but the host is only working. The other not work I click on that is reloading and back

  • @Alpha-Entwickler
    @Alpha-Entwickler 17 дней назад +1

    How much does the server cost, or do I need one? And if it's free, how many players can join?

    • @rootbindev
      @rootbindev  17 дней назад

      Depends on where you host it. If you host it yourself its free, if you use unity Relay its free until a certain amount of players, so it all depends

  • @davitheking024
    @davitheking024 7 месяцев назад +2

    Nice video. Will you continue the Brotatolike series?

    • @rootbindev
      @rootbindev  7 месяцев назад +1

      thank you! yes I will, but I might switch to Unity 6!

    • @davitheking024
      @davitheking024 7 месяцев назад

      @@rootbindev fair enough. Maybe I will use it for this and maybe future projects too. Will you use the "Beta" one or wait for the LTS on

    • @rootbindev
      @rootbindev  7 месяцев назад

      @@davitheking024 the preview version that released yesterday i think

  • @TUPGD
    @TUPGD 6 месяцев назад

    Netcode Samples comes with a UI and everything you need to get this far. But thanks for the video

    • @rootbindev
      @rootbindev  6 месяцев назад +2

      Thanks for the feedback, big D!

  • @NovaStudios0
    @NovaStudios0 3 месяца назад

    How do you make the player spawn on the start like photon does?

    • @rootbindev
      @rootbindev  3 месяца назад

      By assigning the player prefab to the player_prefab Field

    • @NovaStudios0
      @NovaStudios0 3 месяца назад

      @@rootbindev Idk how to do that im to stupid can you please make a quick short or video rq?

    • @rootbindev
      @rootbindev  3 месяца назад

      @@NovaStudios0 if you watch this video, i do it at 2:32

    • @NovaStudios0
      @NovaStudios0 3 месяца назад

      @@rootbindev But when i tested the game without being in the editor and in the full build it just froze

    • @NovaStudios0
      @NovaStudios0 3 месяца назад

      @@rootbindev Btw you should make a paintball (2D) Tutorial cuz I'm making a 2D paintball game, but I can't find any tutorials...

  • @Lauwieeh
    @Lauwieeh 5 месяцев назад

    How did you add extra clients after starting the host?
    Your cursor goes off screen when showing this.

    • @rootbindev
      @rootbindev  5 месяцев назад +3

      I used a package called ParrelSync (The text says it in the ending). Today I would have used Multiplayer PlayMode thou, I think its good enough and can start multiple clients when pressing play

    • @Lauwieeh
      @Lauwieeh 5 месяцев назад

      ​@@rootbindev The speed of this response just earned you a sub.

    • @rootbindev
      @rootbindev  5 месяцев назад +1

      @@Lauwieeh 😅Thank you, I appreciate it!

    • @Lauwieeh
      @Lauwieeh 3 месяца назад

      ​@@rootbindev This little video made me pick up Unity networking, Server/client RPC's and Facepunch / Steam Matchmaking, then i ran into some graphic limits / issues, so in turn made me pick up Unreal Engine, node based coding and its network replication. Please keep doing what you are doing, you underestimate what you are sparking up :)

  • @_m..
    @_m.. 2 месяца назад

    I heard that the server is the host's device, but im not sure, can i even replace photon with netcode?

    • @rootbindev
      @rootbindev  2 месяца назад

      @@_m.. you can choose if you want the server to be the hosts device or not

    • @_m..
      @_m.. 2 месяца назад

      @@rootbindev is it for free?!

    • @rootbindev
      @rootbindev  2 месяца назад

      @@_m.. yes it is free

  • @rebeccaacheampong7239
    @rebeccaacheampong7239 4 месяца назад

    Great video. Thank you. I just subscribed

  • @stringbean5920
    @stringbean5920 Месяц назад

    Would work to make a online cod?

    • @rootbindev
      @rootbindev  Месяц назад

      @@stringbean5920 Netcode for gameobjects is not recommended for high intensity games, then you should use netcode for entities.

  • @AaronAsherRandall
    @AaronAsherRandall Месяц назад

    Dude this is amazing. If you did a more detailed tutorial, even just 20 minutes that covers how to set up stuff like login, authentication, matchmaking, that would be amazing.

    • @rootbindev
      @rootbindev  Месяц назад

      Thank you very much! I Will do more tutorials soon

    • @AaronAsherRandall
      @AaronAsherRandall Месяц назад

      @@rootbindev Thanks for the quick reply! I just watched your Unity Relay video as well. Is that setup fundamentally different from this video? This video seems like it is server authoritative, am I correct?

    • @rootbindev
      @rootbindev  Месяц назад

      @@AaronAsherRandall this video is about unity netcode in general, Relay is how you can use unity netcode to create and join games on unity servers, without the need of port forwarding etc

  • @pilottim136
    @pilottim136 4 месяца назад +1

    thats cool! but do you need to share your IP for that? looks like you do?

    • @rootbindev
      @rootbindev  4 месяца назад

      You don't have to share IP address, check out my latest video where I explain how you can use Relay instead :)

    • @pilottim136
      @pilottim136 4 месяца назад

      @@rootbindev then new question (if you know the answer)
      Can i have more players online at the same time than with pun2 (free)?

  • @ElDonitazz
    @ElDonitazz 6 месяцев назад +2

    I love the video format, I would love to know how to setup a lobby with codes but can't really get it working or to understand these videos out there ;(

    • @rootbindev
      @rootbindev  6 месяцев назад +2

      Thank you! I might do a video explaining it

  • @iop313
    @iop313 Месяц назад

    What version U using?
    This not find me the network
    EDIT: I found the Netcode In the pakage
    What Version did U use? "Netcode for gameobjects" or "Netcode for Entities"?

    • @rootbindev
      @rootbindev  Месяц назад

      I use netcode for gameobjects for this video

    • @iop313
      @iop313 Месяц назад

      @@rootbindev THX

  • @d3zar
    @d3zar 5 дней назад

    I am trying to make a simple mmorpg game. What are the prices of this library ?

    • @rootbindev
      @rootbindev  5 дней назад

      @@d3zar Its free

    • @d3zar
      @d3zar 5 дней назад

      @rootbindev as i understanding, i dont have to write extra server codes right ?. I just need to build server side project and deploy it to my dedicated server machine right ?

    • @rootbindev
      @rootbindev  4 дня назад

      @@d3zar thats correct!

  • @EvS444
    @EvS444 2 месяца назад

    Thx for the video, i will be back soon

  • @_DarkMoves
    @_DarkMoves 3 месяца назад +1

    quality content, i subbed!

  • @Rootz_robloxstudio_xx
    @Rootz_robloxstudio_xx 17 дней назад

    will 3D work with this?

  • @CHRGR.001
    @CHRGR.001 Месяц назад

    um... i dont have a network manager script... i also dont know how to make one or get one

    • @rootbindev
      @rootbindev  Месяц назад

      You get one by installing the netcode for gameobjects package, as shown in 0:44 🙂

    • @rootbindev
      @rootbindev  Месяц назад

      And yes, it works for 3D games aswell :)

  • @leosh9026
    @leosh9026 4 месяца назад +1

    Keep it up! Keep it up!

    • @rootbindev
      @rootbindev  4 месяца назад

      Thank's for your support!

  • @서울_2호선
    @서울_2호선 Месяц назад

    It's a simple and amazing video. I don't know much about English, so I use automatic translation, can you add Korean subtitles?

    • @rootbindev
      @rootbindev  Месяц назад +1

      Thank you very much! I dont know how to do that, I will try

    • @서울_2호선
      @서울_2호선 Месяц назад

      @@rootbindev Thank you! 😀

  • @Mr2019Gtag
    @Mr2019Gtag 25 дней назад +1

    thanks it helped alot

  • @amywang8711
    @amywang8711 4 месяца назад

    Would highly appreciate your affort

  • @پروانهمشکاتی
    @پروانهمشکاتی 2 месяца назад

    Unfortunately, no matter what I do, my player does not move

    • @rootbindev
      @rootbindev  2 месяца назад +1

      im sorry to hear that

  • @GianVlogs2
    @GianVlogs2 3 месяца назад

    aww that ending 😢

  • @bober3706
    @bober3706 3 месяца назад

    Is it public server or just local

    • @rootbindev
      @rootbindev  3 месяца назад

      Your choice

    • @bober3706
      @bober3706 2 месяца назад

      ​@@rootbindev the method that you showed is for local or public. And where i can choose it

    • @rootbindev
      @rootbindev  2 месяца назад

      @@bober3706 if you mean local as in on the same network you dont have to change anything. to make it public you could use unity relay, which i made another tutorial about

  • @blackrachmaninov
    @blackrachmaninov Месяц назад

    where is the part with the server side? Thats the trickiest part by far :)

    • @rootbindev
      @rootbindev  Месяц назад

      This handles the server and the client

    • @rootbindev
      @rootbindev  Месяц назад

      The player who hosts the game is the server. no additional "server side" code is required

    • @blackrachmaninov
      @blackrachmaninov Месяц назад

      @@rootbindev Yes but thats not realistic :)
      Multiplayer game companies all have theirs own servers

    • @rootbindev
      @rootbindev  Месяц назад

      @@blackrachmaninov What do you mean by not realistic? There are plenty of games that do it this way. Also, even if you're using your own servers, this code is enough for that aswell. Just start the server and connect with different clients, there'sno tricky server-side part that isn't covered

    • @blackrachmaninov
      @blackrachmaninov Месяц назад

      @@rootbindev I mean that using a player as the host is not reliable at all :)

  • @Stuntman5701
    @Stuntman5701 Месяц назад

    why would you ever set ServerAuthoritative to false? it opens the pandoras box to every cheater. (you really dont want to trust the client, ever.)

    • @rootbindev
      @rootbindev  Месяц назад +1

      Correct, so it depends on what kind of game you are making. In a competetive game you are right

  • @Peter_Siri
    @Peter_Siri 5 месяцев назад +2

    "they were not real friends"
    😭