Requirements
Requirements offer the option to specify additional criteria that need to be reached in order to unlock a specific product and make it available for purchase.
Unlocks
Unlocks define a set of Key-Value pairs in local PlayerData (DBManager.Set/AddPlayerData methods) that the user has to reach for the product to be unlocked for purchase. Where, and when to set PlayerData is up to you, for example when completing a game level.
Field | Description |
---|---|
Add Unlock Requirement | Adds a new Key-Value pair. |
Key | The JSON-key for the entry in PlayerData. |
Value | The JSON-value that needs to be reached. This is an Integer value. |
Description | Optional. A text that is assigned to the ShopItem's Locked Label Text for a brief explanation to the user. |
Upgrades
Upgrades allow specifying a chain of products that need to be purchased in a defined order, for each to become available when the previous product has been purchased.
Field | Description |
---|---|
Next Upgrade | Select the product that supersedes the current one when purchased. |
When using IAPContainer
instantiation of categories into a shop, you should not instantiate a category that contains upgrade products besides the base product, since that would also make the upgrades available for purchase immediately. Instead, place the base product into your shop manually, or put all upgrade products into a separate category.