Uploaded April 2021 | Updated September 2026, 2 weeks ago
In this video we'll be using NetworkVariables to synchronize the player health across the network.
NetworkVariables are pretty powerful and help abstract a lot of the work needed to make a multiplayer game work. The default behavior is that the server (eg. inside a ServerRPC) makes changes to the variable and they are propagated down to all connected clients.
Chapters:
0:00 Intro
0:15 PlayerHealth Script
3:13 Raycast Damage
5:00 Disable Colliders
5:40 Testing
In this video we'll be using NetworkVariables to synchronize the player health across the network.
NetworkVariables are pretty powerful and help abstract a lot of the work needed to make a multiplayer game work. The default behavior is that the server (eg. inside a ServerRPC) makes changes to the variable and they are propagated down to all connected clients.
Chapters:
0:00 Intro
0:15 PlayerHealth Script
3:13 Raycast Damage
5:00 Disable Colliders
5:40 Testing










