Unity Sample Code
Using a new SDK can sometimes feel overwhelming! This is why we have created some sample code as well as a sample app for you to check out the code in action. These samples can be downloaded from the Sample App Repository.
This tutorial helps you get up to speed quickly by making use of our prewritten code.

Easy Use Prefabs

To make your life easier, we have created a set of Unity prefabs called EasyUsePrefabs. These prefabs can be dragged into an empty scene with an event system and interacted with. The prefab pulls directly from your game making it easy for you to see how your game's settings interact with the your players.
These scripts and UI elements can be reused for your game however you want.

Using the Prefabs

Before following the steps below, make sure you have downloaded and installed the Unity SDK. Once complete, continue with the steps below.
Create a new Unity Scene
Add an Event System to the scene by right clicking on Hierarchy window, hover on UI, and click on Event System
Locate the prefabs in the folder LootLocker/SampleApp/EasyUsePrefabs
Drag anyone of them into the scene to see how they work
Click on Play
Your scene will be populated with the data for that user
Since these scripts are shared with the Sample App, modifying the scripts will also affect the SampleApp and might break the app's functionality. Anytime you update the SDK, your changes will also be overwritten.
To use these prefabs in your own game, we recommend that you modify the prefab itself. You are free to modify and use it as long as you keep the references.

Sample App

The Sample App is the code base we used to develop our Sample Game Mobile App. Learn more about that here.
Before following the steps below, make sure you have downloaded and installed the Unity SDK. Once complete, continue with the steps below.
Double-click on the package or drag the package into your Unity scene to import it.
If you are importing the package into an already existing project, make sure you untick the project settings so your settings are not overwritten.
Click Import to complete the SDK installation.
This documentation is incomplete and will be updated soon.
Last modified 1mo ago