Play test - Login with Steam - (Unity module)
This tutorial module does not apply to WebGL builds due to limitations in Steamworks.
Manual Steam login
-
Open the game in the Unity Editor and make sure to open the
MainMenu.unity
located in theAssets/Scenes/MainMenu.unity
. -
Make sure the
autoLogin
in thesteamConfiguration
is set tofalse
. You can change it in theAssets/Resources/Modules/TutorialModuleConfig.json
file.
...
"steamConfiguration":
{
"steamAppId": "replace with your steam app id",
"autoLogin": false
}
-
With Steam open, play your game in the Unity Editor.
-
Click the Login with Steam button. If your implementation was successful, you will be taken to the main menu.
Auto Steam login
-
Open the game in the Unity Editor and make sure to open the
MainMenu.unity
located in theAssets/Scenes/MainMenu.unity
. -
Make sure the
autoLogin
in thesteamConfiguration
is set totrue
. You can change it in theAssets/Resources/Modules/TutorialModuleConfig.json
file.
...
"steamConfiguration":
{
"steamAppId": "replace with your steam app id",
"autoLogin": true
}
- With Steam open, play your game in the Unity Editor. If your implementation was successful, you will login automatically and be taken to the main menu.
Resources
- The files used in this tutorial section are available in the Unity Byte Wars GitHub repository.