This is a sample implementation of the com.unity.netcode.gameobjects Transport interface for Steam's Steamworks peer to peer relay service.
The implementation is based on the Facepunch library, a C# wrapper for Steamworks. Install Facepunch 2.3.2.
- Add the SteamClient.cs and SteamP2PRelayTransport.cs to your Unity project.
- Add the the SteamClient and SteamP2PRelayTransport Component to your Netcode for GameObjects NetworkManager.
- Set the NetworkManager's Transport to SteamP2PRelayTransport Component you just added.
- Enter a Steam app id (or use the default 480 for testing) on the SteamClient Component.
- Enter a Steam id of the hosting side.
For testing, you will need two Steam clients running and logged in on two different Steam accounts and machines.