Class DetailedTransactionItemView
Component that manages displaying a BaseTransaction's icon, display name and PurchaseButton. When attached to a game object, it will display the Transaction Item's icon and displayName and create and display a PurchaseButton (PurchaseButton) to complete purchase transactions for it.
Inheritance
Inherited Members
Namespace: UnityEngine.GameFoundation.Components
Syntax
[AddComponentMenu("Game Foundation/Detailed Transaction Item View", 2)]
[ExecuteInEditMode]
public class DetailedTransactionItemView : TransactionItemView
Properties
currencyPayoutCountPrefix
The string to prefix the payout Currency counts when displaying the transaction's payouts.
Declaration
public string currencyPayoutCountPrefix { get; }
Property Value
Type | Description |
---|---|
String |
itemPayoutCountPrefix
The string to prefix the payout InventoryItem counts when displaying the transaction's payouts.
Declaration
public string itemPayoutCountPrefix { get; }
Property Value
Type | Description |
---|---|
String |
payoutItemIconPropertyKey
The Static Property key for the icon of the Inventory or Currency payout items, as specified in their Static Properties.
Declaration
public string payoutItemIconPropertyKey { get; }
Property Value
Type | Description |
---|---|
String |
payoutItemsContainer
The Transform in which to display the payout items.
Declaration
public PayoutView payoutItemsContainer { get; }
Property Value
Type | Description |
---|---|
PayoutView |
Methods
SetCurrencyPayoutCountPrefix(String)
Sets the string with which to prefix the Currency payout counts.
Declaration
public void SetCurrencyPayoutCountPrefix(string prefix)
Parameters
Type | Name | Description |
---|---|---|
String | prefix | The string to prefix. |
SetInventoryItemPayoutCountPrefix(String)
Sets the string with which to prefix the Inventory Item payout counts.
Declaration
public void SetInventoryItemPayoutCountPrefix(string prefix)
Parameters
Type | Name | Description |
---|---|---|
String | prefix | The string to prefix. |
SetPayoutItemIconPropertyKey(String)
Sets the Static Property key that will be used when displaying the transaction's payout item images.
Declaration
public void SetPayoutItemIconPropertyKey(string propertyKey)
Parameters
Type | Name | Description |
---|---|---|
String | propertyKey | The key that is defined in the static properties of the transaction's payouts. |
SetPayoutItemsContainer(PayoutView)
Sets the Transform in which to display the payout items' images on this view.
Declaration
public void SetPayoutItemsContainer(PayoutView container)
Parameters
Type | Name | Description |
---|---|---|
PayoutView | container | The Transform in which to display the payout items' images. |
UpdateContentAtRuntime()
To update the item name, item icon, badge text, payout images and PurchaseButton at runtime.
Declaration
protected override void UpdateContentAtRuntime()