How to import and initialize the ZBD Rewards SDK.
Download the ZBD SDK
Import the .unitypackage
"Import Package..."
.Drag and drop the ZBDSDK into your scene
Prefabs
and drag and drop the ZBDSDK prefab into your scene.Adjust UI elements (Optional)
App ID
from your ZBD Customer Success Manager. You’ll need to set this in the ZBDController
script which is attached to the ZBDSDK
game object in the ZBDSDK prefab.
userId
property during initialization of the SDK if you want ZBD to share event data for your users (e.g. user signed up for ZBD app
).userId
: this is your internal userId that can be attributed to a ZBD user.userId
userId
at any time after initialization by calling:
ShowModal()
will present a modal prompting the user to enter a ZBD Gamertag, or to sign in if they were not signed in automatically.
Users can also view their balance and initiate a withdrawal from this modal.
ModalIsVisible
event
IsModalVisible()
You can also call IsModalVisible()
to check the status of the modal.