lib_unity_purchase/Documentation~/UnityIAPBrowsingMetadata.md

12 lines
400 B
Markdown
Raw Normal View History

2024-01-29 18:49:33 +08:00
# Browsing Product Metadata
Unity IAP retrieves localized product metadata during the initialization process, which you can access via the ``IStoreController`` products field.
````
foreach (var product in controller.products.all) {
Debug.Log (product.metadata.localizedTitle);
Debug.Log (product.metadata.localizedDescription);
Debug.Log (product.metadata.localizedPriceString);
}
````