#Relay data sharing
1 messages · Page 1 of 1 (latest)
Do you mean using Netcode for Gameobjects and the Unity Relay Service?
Yes !
Easiest way would be to save the gamestate to a Network Variable that will get synced to both players.
You could also use Cloud Code if you don't need netcode
https://github.com/Unity-Technologies/com.unity.services.samples.multiplayer-chess-cloud-code
GitHub
Contribute to Unity-Technologies/com.unity.services.samples.multiplayer-chess-cloud-code development by creating an account on GitHub.
How do you share a network variable in a relay ? With ServerRpc like that ?