Skip to content

Latest commit

 

History

History
50 lines (38 loc) · 1.54 KB

rpc-and-network-variables.md

File metadata and controls

50 lines (38 loc) · 1.54 KB

RPCs and Network Variables in Unity Multiplayer

RPCs and synchronized network variables are two important concepts in Unity multiplayer development.

They solve different problems:

  • RPCs can be used to communicate that an action or event should happen.
  • Network variables can represent synchronized values that clients need to observe.

For multiplayer board games, understanding the difference helps developers avoid unnecessary network traffic and keep game logic organized.

Table of Contents


What Is an RPC?

RPC stands for Remote Procedure Call.

In multiplayer development, an RPC is a mechanism for requesting that a method or action be executed on another network participant.

A conceptual flow looks like:

Client
  │
  │ RPC Request
  ▼
Server
  │
  │ Execute / Validate
  ▼
Game Logic