Skip to content

This is a sample implementation of the com.unity.netcode.gameobjects Transport interface for Steam's Steamworks peer to peer relay service.

License

Notifications You must be signed in to change notification settings

sagering/UnityNetcodeSteamP2PRelayTransport

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

UnityNetcodeSteamP2PRelayTransport

This is a sample implementation of the com.unity.netcode.gameobjects Transport interface for Steam's Steamworks peer to peer relay service.

How to use this?

The implementation is based on the Facepunch library, a C# wrapper for Steamworks. Install Facepunch 2.3.2.

  1. Add the SteamClient.cs and SteamP2PRelayTransport.cs to your Unity project.
  2. Add the the SteamClient and SteamP2PRelayTransport Component to your Netcode for GameObjects NetworkManager.
  3. Set the NetworkManager's Transport to SteamP2PRelayTransport Component you just added.
  4. Enter a Steam app id (or use the default 480 for testing) on the SteamClient Component.
  5. 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.

About

This is a sample implementation of the com.unity.netcode.gameobjects Transport interface for Steam's Steamworks peer to peer relay service.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages