Skip to content

MrRobinOfficial/Guide-UnitySteamNetcodeGameObjects

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

UnitySteamNetcodeGameObjects

Code for using "Steamworks Network/Facepunch" solution with "Unity Netcode For GameObjects/MLAPI"

How To Install

Install first Unity Netcode For GameObjects
Then install Facepunch Transport
Then you have wiki page for getting started

How To Use It:

You need to assign SteamId to FacepunchTransport

private void HandleTransport(SteamId id) => NetworkManager.Singleton.GetComponent<FacepunchTransport>().targetSteamId = id;

By using callback from steam, you can send that information to FacepunchTransport

private void Start() => SteamFriends.OnGameLobbyJoinRequested += OnGameLobbyJoinRequested; // Add the callback

private void OnDestroy() => SteamFriends.OnGameLobbyJoinRequested -= OnGameLobbyJoinRequested; // Remove the callback

private void OnGameLobbyJoinRequested(Lobby lobby, SteamId id) => HandleTransport(id);

After you got the callbacks and also changing "targetSteamId" in FacepunchTransport, is pretty much the same stuff with Unity Netcode For GameObjects.
Highly recommend watching DapperDino's playlist over Unity Netcode For GameObjects

All the links

Link to Multiplayer Community Contributions
Link to Facepunch Transport for Netcode for GameObjects
Link to Facepunch Wiki Page
Link to Steamworks API
Link to DapperDino's playlist over Unity Netcode For GameObjects

About

This repository is designed to help developers learn how to get started with Facepunch/Steamworks Networking and Unity Netcode For GameObjects.

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages