文档

支持

In-App Purchasing

In-App Purchasing

IAP Catalog window reference

Reference the In-App Purchasing Catalog to configure and manage product properties and store overrides.
阅读时间3 分钟最后更新于 4 天前

The IAP Catalog is a Unity Editor tool where you define, organize, and manage in-app purchase products in one place. Configure product IDs, product types (consumable, non-consumable, subscription), and store-specific overrides to keep definitions consistent across platforms and stores. To access the IAP Catalog, open the Unity Editor, and go to Services > In-App Purchasing > IAP Catalog.

IAP Catalog properties

The following tables describe the properties you can configure in the IAP Catalog.

Product

Configure the basic properties for each product.

Settings

Description

IDThe unique identifier for the product. This must match the identifier used on the target store.
TypeThe type of product. Select Consumable, Non-Consumable, or Subscription.

Advanced product settings

Descriptions

Provide product titles and descriptions to support multiple languages in your catalog.

Settings

Description

LocaleDetermines the app stores available in your region.
TitleThe localized display name for the product.
DescriptionThe descriptive text for your product as it appears in an app store, usually an explanation of what the product is.

Payouts

Define what the player receives when they purchase the product.

Settings

Description

TypeThe type of payout (such as Currency, Item, Resource or Other).
SubtypeA more specific category within the selected type.
QuantityThe amount of the payout delivered to the player.
DataOptional. Use this field as a custom property to reference in code. For example, a flag for a UI element.
For more information on the
PayoutDefinition
class, refer to the Scripting Reference. You can always add payout information to a product in a script using this class.
An example of payout information using the
PayoutDefinition
class:
public static ProductDefinition Consumable = new ProductDefinition("coins", "com.outlinegames.100goldcoins", ProductType.Consumable, true, new List<PayoutDefinition> { new PayoutDefinition(PayoutType.Currency, "gold", 100), });

Store ID Overrides

Specify store-specific product identifiers and configuration settings for each supported platform. This ensures your products are correctly mapped and configured for each app store.

Settings

Description

AppleAppStoreThe product ID as registered on the Apple App Store.
GooglePlayThe product ID as registered on the Google Play Store.
MacAppStoreThe product ID as registered on the Mac App store.

Google Configuration

Define how a product’s price is managed on the Google Play Store.

Settings

Description

PriceEnter the price for the product.
Pricing TemplateEnter an ID for a pricing template created in the Google Play Store.

Apple Configuration

Define how a product’s price is managed on the Apple App Store.

Settings

Description

Price TierSelect the Apple pricing tier for the product.
Pricing TemplateUse Select a screenshot to upload the pricing template.

Advanced settings

Configure initialization and additional export and Apple-specific options.

Settings

Description

Automatically initialize UnityIAPServices (recommended)Enable to initialize Unity IAP Services when the application starts. Recommended for most projects.
Automatically initialize Unity Gaming ServicesEnable to initialize Unity Gaming Services when the application starts.
Catalog exportProvides options to export the catalog for app store submission or external use.
Apple SKUThe Apple Stock Keeping Unit (SKU) for the product, as defined in App Store Connect.
Apple Team IDThe Apple Team ID associated with your Apple developer account.