How To Make A Unity Multiplayer Character Selection Menu - Part 1

  Рет қаралды 21,419

Dapper Dino

Dapper Dino

Күн бұрын

This Unity Multiplayer tutorial will teach you how to create a character selection menu using Unity's Netcode For GameObjects in 2023. For project files access, check out the repository here: github.com/DapperDino/Multipl...
-----------------------------------------------------------------------------------------------------------
Multiplayer Landing Page: docs-multiplayer.unity3d.com/
Boss Room Sample: unity.com/demos/small-scale-c...
Roadmap: resources.unity.com/unity-eng...
-----------------------------------------------------------------------------------------------------------
Join Our Community: dapperdino.co.uk/
-----------------------------------------------------------------------------------------------------------
Other social media:
/ dapperdino
/ dapper_dino
/ dapperdino4
/ dapper-dino-2313996518...
github.com/DapperDino
/ discord
-----------------------------------------------------------------------------------------------------------
If you liked the video then please respond with a like and a subscribe to show your support for the channel and I'll repay you by creating more tutorials!
0:00 - Intro
1:09 - Repo & Docs
1:35 - Setup
3:37 - Coding
30:10 - Testing
31:08 - Outro

Пікірлер: 66
@DapperDinoCodingTutorials
@DapperDinoCodingTutorials Жыл бұрын
Be sure to check out the GitHub Repo if you would like to use the template to follow along with future tutorials: github.com/DapperDino/Multiplayer-Character-Select
@jeanmestti6195
@jeanmestti6195 Жыл бұрын
you're the best bro, thanks a lot!
@mozzarella35
@mozzarella35 Жыл бұрын
my favorite part was when dapper said "It's dappin time" and proceeded to dino all over the netcode. jokes aside this dude makes great content
@IronPaul
@IronPaul Жыл бұрын
You have some of the best and clearest Unity multiplayer tutorials on KZfaq. It's good that you're back. I look forward to each lesson like a new TLoU series)
@DapperDinoCodingTutorials
@DapperDinoCodingTutorials Жыл бұрын
Thanks for the kind words! Glad to be back :)
@NpXAutobot
@NpXAutobot Жыл бұрын
you are the man! keep it up
@DapperDinoCodingTutorials
@DapperDinoCodingTutorials Жыл бұрын
Thanks, will do!
@itayk32123
@itayk32123 7 ай бұрын
Thank you so much! i am making a funny smash bros like game for me and my friends to goof around in, this tutorial was so well made! thank you so much!
@mr.introloon351
@mr.introloon351 Жыл бұрын
Hey ! Thank you for making all these tutorials for us! it's helping quite a lot. I was wondering if you can make a video about Client Side prediction and Client Reconciliation?
@DapperDinoCodingTutorials
@DapperDinoCodingTutorials Жыл бұрын
It will be covered in varying degrees of complexity throughout the tutorials. Technically here we predict when selecting a character as we update the UI locally before sending the RPC to the server to change character as to not feel the latency. If you're referring specifically to movement prediction then it gets a lot more complex and I still need to learn more on that before I'm comfortable teaching it. (I think Unity's roadmap suggests that they are working on making it easier to implement prediction and lag compensation at some point in the future)
@baanan
@baanan Жыл бұрын
thank you 🙏🙏
@DapperDinoCodingTutorials
@DapperDinoCodingTutorials Жыл бұрын
Glad I could help!
@YevheniiZubov
@YevheniiZubov Жыл бұрын
thx for tutor!
@DapperDinoCodingTutorials
@DapperDinoCodingTutorials Жыл бұрын
Welcome!
@nemethszabolcs9239
@nemethszabolcs9239 Жыл бұрын
Nice work, please more video :)
@DapperDinoCodingTutorials
@DapperDinoCodingTutorials Жыл бұрын
More to come!
@nemethszabolcs9239
@nemethszabolcs9239 Жыл бұрын
@@DapperDinoCodingTutorials Hello, I can not solve my issue.. When im joining or selecting charakcer as "host" or "client" playerCards do not show changes. When I leave with client, after that appearing players Id in PlayerCards.
@hotrod8903
@hotrod8903 4 ай бұрын
Hey there, this is a nice video so far. I do have a couple of small questions before I continue on with the video. How is this character select screen going to connect to the main menu? How can you take off the main menu screen to create your character select screen without deleting the main menu screen?
@leventerdem8747
@leventerdem8747 5 ай бұрын
Hello, my characters select buttons spawn on top of each other for some reason
@vittoriochiuselli5516
@vittoriochiuselli5516 Жыл бұрын
Hello, I would do a card game and I was thinking about to use this template to update the player's UI everytime when they draw and play a card, what do you think about it?
@lachlanpott7484
@lachlanpott7484 Ай бұрын
Hey i've completed the entire series and added additional things such as creating public or private lobbies and specifying the amount of player per lobby, however one thing i'm slaving my head over is trying to add inputted player names from the MainMenu and have them show in the lobby, if anyone knows anything on how to do this it would be much appreciated.
@newnomadkids
@newnomadkids 7 ай бұрын
does anyone know how to make it have a leveling system where things are locked and you have to unlock them with coins or by getting xp i am new to unity and i would love some help with this.
@brettmorgan4775
@brettmorgan4775 17 күн бұрын
Downloading this project fresh and opening it up as it is, "build & run" gets stuck at a blank screen. Running it in the editor appears to work but that doesn't let me run multiple to test it out. Any help on this would be greatly appreciated.
@ararashi8967
@ararashi8967 10 ай бұрын
Bro and what i need to do if i want to spawn the character ? im so stressed of trying it to function , can u give me an example of the spawn system in a different scene called Map1?
@waveclovergems2106
@waveclovergems2106 7 ай бұрын
Hi Dapper Dino, I have a question. I want to create a Login, Select Character, Create Character, and Game World Scene for the Client Side and Server Side ServerStart at Game World Scene only, Can I use netcode for game objects to achieve this?
@werlig
@werlig 9 ай бұрын
I've everything like in the video, but the selected character by the client is not synchronizing. My code and how I have set up my components are exactly the same as in the repository, however, it's not working :(
@bunko181
@bunko181 Ай бұрын
i followed along and everything is fine, but the button for the characters are not working. it seems that the buttons are not working because it wont display the character info. i even made sure to add the on click callback for the charactericonimage. any help?
@mcgator1208
@mcgator1208 Жыл бұрын
Is this translatable to bolt? (Unity s visual scripting)
@RicardoSurfMusic
@RicardoSurfMusic Жыл бұрын
what if we need to sync a string as a player name instead of id?
@barbra09
@barbra09 Жыл бұрын
im having problem, im using steamworks transport and when i connect the host theres 2 playercards enabled and they sync eachother and when a client joins they see nothing none of it shows
@jiraya_senju6298
@jiraya_senju6298 3 ай бұрын
Hey, i am a beginner with unity.... this was too much to take in. I'm making the multiplayer game for school work. To make it simpler i want to just automatically spawn both host and client with the characters i decided for them to have. How would i do that?
@theWEAREANIME
@theWEAREANIME Жыл бұрын
Can Someone Help me, In the tutorial he Dapper Dino Did not put in how to code start host and transfer to next scene. would someone help me how to do it? thank you very much!
@ararashi8967
@ararashi8967 10 ай бұрын
Someone can help me ? , im trying to put my own characters , and to spawn them in the next scene , some tips to do it ? without crying cuz 79 code errors ?
@user-rj1bo4gw9o
@user-rj1bo4gw9o Жыл бұрын
what is the difference between Mirror and NGO for you and why are you not doing Mirror now, but doing NGO
@DapperDinoCodingTutorials
@DapperDinoCodingTutorials Жыл бұрын
There are 2 main reasons for me, 1. I prefer official solutions usually over 3rd party 2. It means that when I want to use UGS for matchmaking, server hosting, etc... It's all designed to work with Unity (mainly) which makes it easier to integrate and easier to get help if needed as it's their own solution and services. Hope this helps you understand why I made this choice. These are my main reasons though I'm sure I could think of more with more time :D
@user-pd5ny8iu5f
@user-pd5ny8iu5f Жыл бұрын
Is it possible publish the game to the Unity website using webGL? I’ve been struggling since it keep shows the HTTP error message when I try it. It would be really helpful if somebody can help me. Thank you for the amazing video btw!!
@sexypekk
@sexypekk 9 ай бұрын
I'm still kind of new to the concept of ScriptableObjects, but it seems like we only need one character database per game, does it still make sense to make it a ScriptableObject?
@cheetah7887
@cheetah7887 Жыл бұрын
how do i make the player cards
@_Smileyyy
@_Smileyyy Жыл бұрын
I know this is late but i was wondering if you could do a map selection tutorial for multiplayer
@perspectives2202
@perspectives2202 Жыл бұрын
Please move these series, I need you for my project. HERO
@DapperDinoCodingTutorials
@DapperDinoCodingTutorials Жыл бұрын
Happy to help!
@jadeainsworth5937
@jadeainsworth5937 Жыл бұрын
im getting this weird issue where the first of the character selection buttons is being spawned, but non of it's values are being set: IE the character scriptable object it holds, or the CharacterSelectDisplay scene reference.
@jadeainsworth5937
@jadeainsworth5937 Жыл бұрын
nvm I got it: for any one else. After I instantiated the prefab, I was calling .SetCharacter() on the prefab its self, not the instance. thats why.
@HeyWhoTheFuckAreYou
@HeyWhoTheFuckAreYou Жыл бұрын
Will there be videos on Unity DOTS ECS since ECS is now version 1.0 and a lot of things have changed, I would like to see updated videos on this topic? And also about NetCode for ECS.
@DapperDinoCodingTutorials
@DapperDinoCodingTutorials Жыл бұрын
That's something I want to learn more about myself, when I'm more familiar with it then it's definitely something I want to make tutorials for!
@OniroStudio.
@OniroStudio. Жыл бұрын
Could you make a video about the rooms? How to implement one?
@DapperDinoCodingTutorials
@DapperDinoCodingTutorials Жыл бұрын
Can you be more specific?
@loganlane7833
@loganlane7833 Жыл бұрын
if you watched the intro video and you are missign something you need to instal a packages: services.lobby services.matchmaker services.multiplay services.relay
@ronwelch749
@ronwelch749 Жыл бұрын
The game I'm making requires a pool of say 6 player characters. Then when a player chooses one of these, then that character becomes unavailable to the other players. How I can implement this? Thanks. :)
@DapperDinoCodingTutorials
@DapperDinoCodingTutorials Жыл бұрын
I'll cover that in next week's tutorial when I add the ability to "lock in". So as soon as a character is locked in, no one else can lock in the same character
@begnaf
@begnaf Жыл бұрын
Could you make video about spawn points?
@DapperDinoCodingTutorials
@DapperDinoCodingTutorials Жыл бұрын
Spawn points will definitely be covered at some point when we make some "actual gameplay"
@mtarikan
@mtarikan Жыл бұрын
I followed all the steps carefully but I can't see my character buttons and I couldn't see CharacterSelectButton in your Hierarchy. Where they should be put?
@zach_stutsman
@zach_stutsman Жыл бұрын
Im having the same issue
@fuwafuwa-zy4yg
@fuwafuwa-zy4yg Жыл бұрын
Is there a reason for using -1 instead of null ?
@DapperDinoCodingTutorials
@DapperDinoCodingTutorials Жыл бұрын
Since we're working with an integer which is a value type not a reference type, we can't use null. The standard way of having an invalid id is to default it to -1
@littledemo3605
@littledemo3605 Жыл бұрын
please make something like this with fishnet
@rdnaidra7280
@rdnaidra7280 9 ай бұрын
I apologize if my word will hurt you, I can make the game after following this. I still don't understand what for what. It would be better if you show me the result for What I coded here. but Thank you for sharing
@ewaldschulte6529
@ewaldschulte6529 11 ай бұрын
Don't getg me wrong, I am thankful for your tutorials asnd your work, but the trouble setting up the project to start with (I'm not talking about the multiplayer template you mentioned - I created that, but that's just half of the story, since you completely chasnged the gameplay scene and just rushed through it in a few secs) is a really unnecessary downer :( I understand that you don't want to waste time with it - me neither, since that's not wshere the focus is here - but why not sharing the project at the beginning of this tutorial and one in its final state? So that we can simply start off together? It could be so easy....
@ewaldschulte6529
@ewaldschulte6529 11 ай бұрын
The Gameplay scene on GitHub looks totally different than what you are showing at the beginning so it's kind of useless for the start. It's a shame when such high quality content is "shadowed" by annoying drawbacks like this :(
@alkaline3mc
@alkaline3mc 7 ай бұрын
It really doesn't help that you setup all your UI stuff off camera. Because when you get to the end and need to be associating all those scripts with all those components there isn't a clear link that has been established regarding what subcomponents of what prefabs consist of.
@haesslicherhuan
@haesslicherhuan Жыл бұрын
I have an error that says: Assets\Scripts\CharacterSelectDisplay.cs(16,47): error CS8377: The type 'CharacterSelectState' must be a non-nullable value type, along with all fields at any level of nesting, in order to use it as parameter 'T' in the generic type or method 'NetworkList'. How can i fix this?
@haesslicherhuan
@haesslicherhuan Жыл бұрын
nevermind, found it out. I declared the CharacterSelectState as a class and not a struct.... my god...
@realisticlyunavailable8355
@realisticlyunavailable8355 Жыл бұрын
@@haesslicherhuan Thanks bro I was about to pull the trigger
@MosleyC92
@MosleyC92 9 ай бұрын
Found the issue for me. On the CharacterSelectState Class make sure it goes public struct CharacterSelectState for the class name. Don't know if this is too late to tell you though haha
Learning C# In A Week... Otherwise I Fail University
9:04
I CAN’T BELIEVE I LOST 😱
00:46
Topper Guild
Рет қаралды 102 МЛН
A clash of kindness and indifference #shorts
00:17
Fabiosa Best Lifehacks
Рет қаралды 21 МЛН
Unity Tutorial - Simple Character Selection System
5:30
RumpledCode
Рет қаралды 84 М.
Recreating Smash Bros. Selection Screen | Mix and Jam
7:49
Mix and Jam
Рет қаралды 85 М.
The Process of Making a Game
10:21
Floast Dev
Рет қаралды 3,7 М.
5 Things to Know w/ NGO - Unity Devs (Lobby Relay WebGL)
4:56
Jason Weimann
Рет қаралды 7 М.
How to Make a Good 2D Camera
11:38
Game Maker's Toolkit
Рет қаралды 389 М.
Unity Character/Skin Selection Menu - Easy Unity Tutorial
13:31
How To Make A Multiplayer Game In Unity 2021.1 - Syncing Variables
13:17
A new way to generate worlds (stitched WFC)
10:51
Watt Designs
Рет қаралды 514 М.
Multiplayer Character Selection screen - Fishnet Tutorial - Unity 3D
8:01