PurchaseItem

Method

Purchase an item from the shop for the current space. When the item is priced in Spatial Coins, the user will be prompted to confirm the purchase. If the item is priced in world currency, the purchase will be made immediately without confirmation.

Definition

PurchaseItemRequest PurchaseItem(string itemID, ulong amount = 1, bool silent = false)
PurchaseItemRequest PurchaseItem(string itemID, ulong amount = 1, bool silent = false)

Returns PurchaseItemRequest

Parameters

ParameterDescription
string itemID

The ID of the item to purchase

ulong amount

The total amount of the same item to purchase in bulk

bool silent

If possible, don't show any confirmation messages in the UI