Steam
Last updated
Last updated
To use Steam in your game you must be a registered developer and have a game with
Go to in the LootLocker Web Console and make sure the Steam platform is enabled.
Steam App ID
To get the Steam App ID you have to log in to the SteamWorks Partner Dashboard.
Steam Publisher Key
Before we can authenticate with Steam and start a LootLocker session we must have access to a few values from the SteamWorks API.
Our recommended way to gain access to the SteamWorks API in a Unity Game is by using the 3rd party library called Steamworks.NET
After adding SteamWorks integration in your project you can go ahead and authenticate the player. If successful, this call will return a lot of data that you can use to display to the Player or make more calls to LootLocker during this session.
We'll start by creating a new empty Game Object in your scene and calling it GameManager. Feel free to skip this if you already have a GameManager or similar in your game.
In this new GameObject you can add a new script called GameManager.
Open up your new script in your editor of choice and add the following code:
To find the Steam Publisher Key you can follow from Valve.
To learn more about authentication with Steam you can read their documentation for .
Install Steamworks.NET using the instructions found here:
To learn now to configure your game to work with Steam, please follow the .
The following steps will help you to retrieve the SteamSessionTicket
from the Online Subsystem that you set up in .
To copy and paste the above example into your editor, .
Follow the on how to . Once Steam is properly initialized, open up the script from which you want to trigger LootLocker Authentication in Godot and add the following code.
Congratulations - you have now started using LootLocker in your game with Steam! Next up we suggest you look at our and decide which ones you want to use in your game.