Skip to content

Commit

Permalink
Merge develop into main (#1334)
Browse files Browse the repository at this point in the history
Co-authored-by: Amy Reeve <[email protected]>
Co-authored-by: Noel Stephens <[email protected]>
Co-authored-by: Dominick <[email protected]>
Co-authored-by: Rémi MACH <[email protected]>
Co-authored-by: LagowiecDev <[email protected]>
Co-authored-by: amanda-butler-unity <[email protected]>
Co-authored-by: Griffin of Innatical <[email protected]>
Co-authored-by: Christopher Pope <[email protected]>
Co-authored-by: Steve Diniro <[email protected]>
Co-authored-by: s-omeilia-unity <[email protected]>
Co-authored-by: Alex Martin <[email protected]>
Co-authored-by: Monaxys <[email protected]>
Co-authored-by: Flap27 <[email protected]>
Co-authored-by: NRTnarathip <[email protected]>
Co-authored-by: Elfi0Kuhndorf <[email protected]>
Co-authored-by: CodeSmile <[email protected]>
Co-authored-by: Frank Luong <[email protected]>
Co-authored-by: Sue Arkin <[email protected]>
Co-authored-by: Johann Ruwet <[email protected]>
Co-authored-by: KreutzerCode <[email protected]>
Co-authored-by: Dominick <[email protected]>
Co-authored-by: Paolo Abela <[email protected]>
  • Loading branch information
1 parent da87938 commit 4410621
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/learn/bitesize/bitesize-introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: 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).

* [Multiplayer Use Cases](bitesize-usecases.md) - Learn more about core Netcode For GameObjects (Netcode) features through practical examples and In-Editor tutorials.
* [2D Space Shooter Sample](bitesize-spaceshooter.md) - Learn more about physics movement and status effects using Netcode `NetworkVariables` and `ObjectPooling`.
* [Invaders Sample](bitesize-invaders.md) - Learn more about game flow, modes, unconventional movement networked, and a shared timer.
* [Client Driven Sample](bitesize-clientdriven.md) - Learn more about Client driven movements, networked physics, spawning vs statically placed objects, object reparenting.
Expand Down
43 changes: 43 additions & 0 deletions docs/learn/bitesize/bitesize-usecases.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
id: bitesize-usecases
title: Multiplayer Use Cases sample
description: Learn about the scenes in the Multiplayer Use Cases sample.
---

The [Multiplayer Use Cases Sample](https://github.com/Unity-Technologies/com.unity.multiplayer.samples.bitesize/tree/main/Basic/MultiplayerUseCases) provides multiple scenes that explain some APIs, systems, and concepts that you can use with Netcode for GameObjects:

- Server-side manipulation of data sent by Clients.
- State synchronization through NetworkVariables.
- Proximity interactions that are only visible only to the local player.
- Client-server communication through Remote Procedure Calls (RPCs).

### Tutorials

Each scene includes a tutorial to help you locate the scripts and GameObjects it uses. Follow the tutorial included in each sample scene to learn how to use it.

The tutorials that open with each scene use the [Tutorial Framework package](https://docs.unity3d.com/Packages/[email protected]/manual/index.html). You can open each tutorial at any time from the **Tutorials** menu.

## The NetvarVsRpc scene

The NetvarVsRpc scene explains why to use NetworkVariables instead of Remote Procedure Calls (RPCs) to perform state synchronization.

## The NetworkVariables scene

The NetworkVariables scene shows you how to use NetworkVariables to perform state synchronization in a way that also sends the most recent information to late joining or reconnecting clients.

## The ProximityChecks scene

The ProximityChecks scene shows you how to detect the local user and enable or disable in-game actions based on the player character's distance from a GameObject.

## The RPCs scene

The RPCs scene semonstrates the following Remote Procedure Call (RPC) processes:
* Use RPCs to send information from clients to the server.
* Perform server-side manipulation of the data sent.
* Use connection approval to determine the spawn position of the player.

## Additional resources

- Get help and ask questions on [Multiplayer Discussions](https://discussions.unity.com/lists/multiplayer).
- Join the community of Multiplayer creators on the [Multiplayer Networking Discord](https://discord.gg/unity-multiplayer-network).
- [Request a feature or report a bug](https://github.com/Unity-Technologies/com.unity.multiplayer.samples.bitesize/issues/new/choose).
4 changes: 4 additions & 0 deletions sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,10 @@ module.exports = {
"type": "category",
"label": "Bitesize samples",
"items": [
{
"type": "doc",
"id": "learn/bitesize/bitesize-usecases"
},
{
"type": "doc",
"id": "learn/bitesize/bitesize-introduction"
Expand Down

0 comments on commit 4410621

Please sign in to comment.