mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 19:10:32 +00:00
b86a611674
* moving all guides to Articles folder * updating toc for root and articles * fixing toc * css on side toc * fixing links on index
14 lines
757 B
Markdown
14 lines
757 B
Markdown
# Network Match Checker
|
|
|
|
The Network Match Checker component controls visibility of networked objects based on match id.
|
|
|
|
![Network Scene Checker component](NetworkMatchChecker.png)
|
|
|
|
Any object with this component on it will only be visible to other objects in the same match.
|
|
|
|
This would be used to isolate players to their respective matches within a single game server instance.
|
|
|
|
When you create a match, generate and store, in a List for example, a new match id with `System.Guid.NewGuid();` and assign the same match id to the Network Match Checker via `GetComponent<NetworkMatchChecker>().matchId`.
|
|
|
|
Mirror's built-in Observers system will isolate SyncVar's and ClientRpc's on networked objects to only send updates to clients with the same match id.
|