Awesome
<br><br>
Netcode for GameObjects Bitesize Samples
*: Due to a regression in Netcode for GameObjects pertaining to the destruction of NetworkObjects when a client unsuccessfully connects, the Dynamic Addressables Network Prefabs sample has remained at v1.7.1. It will be upgraded in the near future with the latest Netcode version including a fix for the regression.
This repository contains a collection of bitesize sample projects and games that showcase different techniques which can help you get started with development of a multiplayer project using Netcode for GameObjects. <br><br>
Bitesize Samples Overview
2D Space Shooter Overview
The 2D Space Shooter Sample was a UNET sample that has been converted over to NGO. Check it out to learn more about physics movement and status effects using Netcode NetworkVariables
and ObjectPooling
.
<br><br>
Distributed Authority Social Hub
Social Hub is built with the Distributed Authority topology, showcasing recommended approaches to designing gameplay features with the new framework inside Netcode for GameObjects v2.0 in tandem with the Multiplayer SDK. This sample serves as the educational entry point for users who are looking to implement a similar networking topology inside their projects. <br><br>
Multiplayer Use Cases Overview
The Multiplayer Use Cases sample show you how to perform common actions in a multiplayer environment, so that you can build the features of your game with them in mind.
In this sample you'll learn about the core features of Netcode For GameObjects (Netcode) through practical examples that you'll be able to extend and adapt to fit the gameplay logic of your own game.
Each scene comes with an in-editor tutorial that will help you explore the main scripts and object of each scene, so you know where to look at to find what you're looking for. <br><br>
Client Driven Overview
See the Client Driven Sample to learn about client driven movements, networked physics, spawning vs in-scene placed NetworkObjects
, and NetworkObject
parenting.
<br><br>
Dynamic Addressables Network Prefabs Overview
Check out the Dynamic Addressables Network Prefabs Sample to learn more about the dynamic prefab system, which allows us to add new spawnable network prefabs at runtime. <br><br>
Readme Contents and Quick Links
<details open> <summary> Click to expand/collapse contents </summary> </details><br>
Getting the project
Direct download
-
You can download the latest versions these samples from our Releases page
-
Alternatively: select
Code
and select the 'Download Zip' option. Please note that this will download the branch you're currently viewing on Github <br><br>
Requirements
The bitesize samples are compatible with the latest Unity Long Term Support (LTS) editor version, currently 2022 LTS and are supported on the Windows 10 and Mac OSX platforms. Please include standalone support for Windows/Mac in your installation.
PLEASE NOTE: You will also need Netcode for Game Objects to use these samples. See the Installation Documentation to prepare your environment. You can also complete the Get Started With NGO tutorial to familiarize yourself with Netcode For Game Objects. <br><br>
Troubleshooting
Bugs
- Report bugs in the Bitesize samples using Github issues
- Report NGO bugs using NGO Github issues
- Report Unity bugs using the Unity bug submission process
Documentation
For a deep dive into Netcode for GameObjects and the Bitesize Samples, visit our documentation site. <br><br>
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. <br><br>
Contributing
We welcome your contributions to this sample code and objects. See our contribution guidelines for details. <br><br>
Feedback
If you have tried these samples already, please consider leaving us feedback here--it will only take a couple of minutes. Thanks! <br><br>
Other samples
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. <br><br>