About Bitesize Samples
The Bitesize Samples repository provides a series of sample code as modules to use in your games and better understand Netcode for GameObjects (Netcode).
- 2D Space Shooter Sample - Learn more about physics movement and status effects using Netcode
- Invaders Sample - Learn more about game flow, modes, unconventional movement networked, and a shared timer.
- Client Driven Sample - Learn more about Client driven movements, networked physics, spawning vs statically placed objects, object reparenting
You need Unity and Netcode for GameObjects installed to work with these samples. See Install Netcode for GameObjects for details.
Get the samples
Get the project files
Download the project files from the Bitesize Samples Repository
After download, unzip the archive file. You are now ready to add the project to Unity Hub.
Add a sample to the Unity Hub
- Open Unity Hub.
- Click Add.
- Navigate to the unzipped folder. select the one of the projects in the
Basicfolder to add the respective project.
The Bitesize Samples have been built for a specific Unity version. You can see the version after adding a sample to the Unity Hub or in the description of the repository. We recommend using the same Unity version to avoid potential issues.
Error: Error building Player: Currently selected scripting backend (IL2CPP) isn't installed.
Currently, you may need to have Unity IL2CPP installed. Bitesize Samples should not require IL2CPP, and may have updates to resolve this error.