Skip to content

A collection of smaller bite-size samples to educate in isolation features of Netcode for GamesObjects and related technologies.

License

Notifications You must be signed in to change notification settings

emgamedev-unity3d/Client-Driven_Sample_with_Game-Server-Hosting

 
 

Repository files navigation

Banner

Client-Driven Bitesize Sample w/ Game Server Hosting & Matchmaker

UnityVersion NetcodeVersion

This repository is a fork of Unity's bitesize samples repository, which are built with our netcode solution, Netcode for GameObjects. This copy is a fun project to help us answer the question of what challenges does a developer face, when they'd like to implementing Game Server Hosting(Multiplay) and Matchmaker, to their multiplayer game made with Netcode for GameObjects.

The code you'll see in this sample is based on Unity's own Matchplay Sample, which demonstrates how to create a Matchmake button, a basic networked client-server game with a matchmaking feature from end-to-end using the Unity Engine and Cloud Services SDK.

PLEASE NOTE: This is a basic sample, and does not cover advanced features of Matchmaking and Server Hosting.


Client Driven Sample Overview

See the Client Driven Sample to learn about client driven movements, networked physics, spawning vs in-scene placed NetworkObjects, and NetworkObject parenting.


Readme Contents and Quick Links

Click to expand/collapse contents


Getting the project

Direct download

  • This repository is public! Feel free to clone it, or download the contents as a .zip file.

  • For Zipped File download: select Code and select the 'Download Zip' option. Please note that this will download the branch you're currently viewing on Github

Requirements

This project is compatible with the Unity Long Term Support (LTS) editor version, 2021.3.XX LTS. Please include standalone support for Windows/Mac in your installation.

PLEASE NOTE:

  • When you first download the project, it will not automatically work using the services. Every developer must create a Unity dashboard project, and run through the necessary setup guides for Game Server Hosting, and then Matchmaker as well.
  • You will also need Netcode for Game Objects to use these samples. Complete the Hello World tutorial to prepare your environment.

Troubleshooting

Bugs

Multiplayer Development Documentation

For a deep dive into Netcode for GameObjects and the Bitesize Samples, visit our documentation site.

Community

For help, questions, networking advice, or discussions about Netcode for GameObjects and its samples, please join our Discord Community or create a post in the Unity Multiplayer Forum.

Feedback

If you'd like to leave feedback for this sample, or the other bitesize samples, please consider leaving us feedback here--it will only take a couple of minutes. Thanks!

Other samples

MatchPlay Sample

MatchPlay demonstrates how to create a Matchmake button: a basic networked client-server game with a matchmaking feature from end-to-end using the Unity Engine and Cloud Services SDK.

Galactic Kittens

Galactic Kittens is a small 2D co-op space adventure sample game where players must blast off to space and defeat all of the possible enemies in a small time range.

Boss Room Sample

Boss Room is a fully functional co-op multiplayer RPG made with Unity Netcode. It is an educational sample designed to showcase typical netcode patterns that are frequently featured in similar multiplayer games.

Documentation Forums Discord

About

A collection of smaller bite-size samples to educate in isolation features of Netcode for GamesObjects and related technologies.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 63.2%
  • ShaderLab 31.6%
  • HLSL 5.2%