Legacy Documentation: Version 2017.2 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

ICatalogProvider

interface in UnityEngine.Purchasing.Extension

Description

ICatalogProvider can replace or add products to the product configuration at runtime.

When Purchasing is initialized, if the ConfigurationBuilder has the useCatalogProvider property set to true, the ICatalogProvider's FetchProducts method will be called before the initialization is completed.

Public Methods

FetchProductsProductDefinitions fetched by this method will add to or replace the set of ProductDefinitions supplied in the ConfigurationBuilder.
对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答