Class IAPButton
A GUI component for exposing the current price and allow purchasing of In-App Purchases. Exposes configurable elements through the Inspector.
Inherited Members
Namespace: UnityEngine .Purchasing
Assembly: solution.dll
Syntax
[Obsolete("IAPButton is deprecated, please use CodelessIAPButton instead.", false)]
[RequireComponent(typeof(Button))]
[AddComponentMenu("In-App Purchasing/IAP Button (legacy)", 2147483647)]
[HelpURL("https://docs.unity3d.com/Manual/UnityIAP.html")]
public class IAPButton : BaseIAPButton
Fields
Name | Description |
---|---|
button |
The type of this button, can be either a purchase or a restore button. |
consume |
Consume the product immediately after a successful purchase. |
description |
Displays the localized description from the app store. |
on |
Event fired after a successful purchase of this product. |
on |
Event fired after a failed purchase of this product. |
on |
Event fired after a restore transactions. |
price |
Displays the localized price from the app store. |
product |
Which product identifier to represent. Note this is not a store-specific identifier. |
title |
Displays the localized title from the app store. |
Methods
Name | Description |
---|---|
Add |
|
Get |
|
Is |
|
On |
|
On |
Invoked on a failed purchase of the product associated with this button |
On |
|
Process |
Invoke to process a successful purchase of the product associated with this button. |
Remove |
|
Should |