Products and catalogs
Understand how to define, organize, and manage Unity IAP products using the Unity IAP Catalog.
Read time 2 minutesLast updated 10 hours ago
In Unity IAP, a product is any digital item that users can purchase within your application, such as virtual currency, new game levels, premium features, or subscriptions. You can define your products in two main ways:
- Access the IAP Catalog window in the Unity Editor (recommended for most projects).
- Define products directly in your scripts.
ProductCatalog.LoadDefaultCatalogCatalogProviderProduct attributes
Each product has several key attributes that determine its behavior and presentation:Product ID
The Product ID is a unique, cross-platform identifier for your product. It is used to communicate with the app stores and can be overriden with store-specific IDs if needed. Product IDs must only contain lowercase letters, numbers, underscores, and periods.Product types
The Product type defines how an item can be purchased and whether it can be restored. The following product types are available:Type | Description | Examples |
|---|---|---|
| Consumable | A product that a user can purchase multiple times and is depleted upon use. Consumable products can't be restored. For example, virtual currency or temporary power-ups. | * Virtual currencies * Health potions * Temporary power-ups |
| Non-Consumable | A product that a user can only purchase once. These items are permanently owned and can be restored after reinstalling the application. For example, unlocking a new character or removing ads. | * Weapons or armor * Access to extra content * No ads |
| Subscription | A product that grants access to content or features for a set period. For example, monthly VIP access or a battle pass. | * Monthly access to an online game * VIP status granting daily bonuses * A free trial |