filmov
tv
How to Setup Dedicated Server Hosting and Matchmaking for Unity
Показать описание
Lean how to use Unity's UGS tools to host a dedicated game server and implement matchmaking.
ᐅGet the full Source Code Bundle to my Unity Tutorials 🤓
📥Get the Source Code📥
Wishlist my new game BUMBI on Steam!
If you liked this video please like and subscribe as it helps me a lot, and consider joining my Patreon or becoming a YouTube Member :)
►Check out the Previous Video
The Ultimate Multiplayer Tutorial for Unity - Netcode for GameObjects
⚙️ Set Up ⚙️
►Multiplay
►Matchmaker
►Multiplay Launch Parameters
If the client ticket times out, make sure you are connected to Unity Services in the Editor (Project Settings ᐅ Services). Sometimes it disconnects you and you need to click "Retry Connection".
🔗Video Links 🔗
►Unity Multiplay Documentation
►Unity Matchmaker Documentation
►Game Engine Best Practices (Contains the TargetFPS Script)
►Your Unity Dashboard
►Multiplay Launch Parameters
►Unity Command Line Arguments
►Matchplay: A Matchmaker and Multiplay sample
In this video I cover how to upload your multiplayer game build to Unity Gaming Services (UGS) Multiplay, which will act as a scalable dedicated hosting platform with minimal setup needed. Then we will go over Matchmaker, a way to easily connect players together and host a match.
Before uploading to UGS Matchplay, we need to create a Dedicated Linux Server build of our game in Unity. For this we create a script to read the command line arguments passed to the game and determine if the build is the server. It is also recommended to set the target frame rate and disable v-sync.
In UGS, we will then create a build, a build config with our launch parameters, a fleet which will determine where our server will run, and then test it with a test allocation. We also enable Matchmaker within our project. Then back to Unity, we write some boilerplate code to connect our game to UnityGamingServices using the ip and passed in port, then find a matchmaker allocation which spins up a server. We also enable backfill to support players joining the match after it has started. On the client side we write a separate script where the client is signed in anonymously, enables UnityGamingServices, then tries to fill their matchmaking ticket to be assigned to the match. At the end of the video we also fix some bugs that become apparent when hosting the game on the UGS dedicated server platform.
🤝 Support Me 🤝
►⏱️ Timestamps ⏱️
0:00 Intro
1:12 Game Showcase
2:47 Multiplay Terms
6:14 Set Up Build for Multiplay
31:30 Set Up Matchmaker
45:29 Matchmaker Server Script
1:24:56 Matchmaker Client Script
1:46:19 Replace UGS Build
1:48:57 Bug Fixing
1:55:42 Outro
💖💖THANK YOU TO ALL MY PATRONS 💖💖
❯❯❯ My Links ❮❮❮
💗 Patreon 💗
💬 Discord Server 💬
🐦 Twitter 🐦
📚 Facebook 📚
👍 Like and Subscribe! 👍
🖥️ Computer Setup 🖥️
*As an Amazon Associate I earn from qualifying purchases.
►Gameplay Videos Shown:
ᐅ10 Brand NEW Multiplayer Games Trying Something NEW
ᐅ15 Great Couch Co-Op Games to Play w/ Your Friends
ᐅMario Kart 8 Deluxe - All New DLC Courses (DLC Booster Pack 1) (4K)
#unity3d
#gamedev
#multiplayer
ᐅGet the full Source Code Bundle to my Unity Tutorials 🤓
📥Get the Source Code📥
Wishlist my new game BUMBI on Steam!
If you liked this video please like and subscribe as it helps me a lot, and consider joining my Patreon or becoming a YouTube Member :)
►Check out the Previous Video
The Ultimate Multiplayer Tutorial for Unity - Netcode for GameObjects
⚙️ Set Up ⚙️
►Multiplay
►Matchmaker
►Multiplay Launch Parameters
If the client ticket times out, make sure you are connected to Unity Services in the Editor (Project Settings ᐅ Services). Sometimes it disconnects you and you need to click "Retry Connection".
🔗Video Links 🔗
►Unity Multiplay Documentation
►Unity Matchmaker Documentation
►Game Engine Best Practices (Contains the TargetFPS Script)
►Your Unity Dashboard
►Multiplay Launch Parameters
►Unity Command Line Arguments
►Matchplay: A Matchmaker and Multiplay sample
In this video I cover how to upload your multiplayer game build to Unity Gaming Services (UGS) Multiplay, which will act as a scalable dedicated hosting platform with minimal setup needed. Then we will go over Matchmaker, a way to easily connect players together and host a match.
Before uploading to UGS Matchplay, we need to create a Dedicated Linux Server build of our game in Unity. For this we create a script to read the command line arguments passed to the game and determine if the build is the server. It is also recommended to set the target frame rate and disable v-sync.
In UGS, we will then create a build, a build config with our launch parameters, a fleet which will determine where our server will run, and then test it with a test allocation. We also enable Matchmaker within our project. Then back to Unity, we write some boilerplate code to connect our game to UnityGamingServices using the ip and passed in port, then find a matchmaker allocation which spins up a server. We also enable backfill to support players joining the match after it has started. On the client side we write a separate script where the client is signed in anonymously, enables UnityGamingServices, then tries to fill their matchmaking ticket to be assigned to the match. At the end of the video we also fix some bugs that become apparent when hosting the game on the UGS dedicated server platform.
🤝 Support Me 🤝
►⏱️ Timestamps ⏱️
0:00 Intro
1:12 Game Showcase
2:47 Multiplay Terms
6:14 Set Up Build for Multiplay
31:30 Set Up Matchmaker
45:29 Matchmaker Server Script
1:24:56 Matchmaker Client Script
1:46:19 Replace UGS Build
1:48:57 Bug Fixing
1:55:42 Outro
💖💖THANK YOU TO ALL MY PATRONS 💖💖
❯❯❯ My Links ❮❮❮
💗 Patreon 💗
💬 Discord Server 💬
🐦 Twitter 🐦
📚 Facebook 📚
👍 Like and Subscribe! 👍
🖥️ Computer Setup 🖥️
*As an Amazon Associate I earn from qualifying purchases.
►Gameplay Videos Shown:
ᐅ10 Brand NEW Multiplayer Games Trying Something NEW
ᐅ15 Great Couch Co-Op Games to Play w/ Your Friends
ᐅMario Kart 8 Deluxe - All New DLC Courses (DLC Booster Pack 1) (4K)
#unity3d
#gamedev
#multiplayer
Комментарии