ProductPurchaseButton
ZEPETO.Product.ProductPurchaseButton
Class managing the functionality of an in-World product purchase button.
Hierarchy
↳
ProductPurchaseButton
Constructors
constructor
• new ProductPurchaseButton()
Overrides
UnityEngine.MonoBehaviour.constructor
Accessors
product
• get
product(): ProductRecord
Retrieves the in-World product information associated with the productId
.
Returns
productId
• get
productId(): string
Gets the ID of the in-World product available for purchase.
Returns
string
Methods
SetProductId
▸ SetProductId($productId
): void
Sets the ID of an in-World product available for purchase using this button.
Parameters
Name | Type | Description |
---|---|---|
$productId | string | Product ID. |
Returns
void