Nintendo Switch
Authenticate your players when playing on their Nintendo Switch and register a session for them on the LootLocker backend.
Last updated
Authenticate your players when playing on their Nintendo Switch and register a session for them on the LootLocker backend.
Last updated
We have made authenticating with Nintendo Switch as simple as possible with this integration.
Ensure that you have the following conditions met:
Note that we can not guide you on how to obtain the NSAIDToken
for the example below due to legal reasons. The NintendoSDK does have great examples on how to obtain this yourself though.
This requires that you have set up the Unity SDK in your game.
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.
Then 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 confirm that everything is running without errors, you can start your game and check the console for the correct Debug.Log message.
Congratulations - you have now started using LootLocker in your game with Nintendo Switch! Next up we suggest you look at our feature set, and decide which ones you want to use in your game.