Class PlayerInventoriesHelper
Helper for the PlayerInventoriesHelper
Inherited Members
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: Unity.Services.Economy.Tools
Assembly: Unity.Services.Economy.dll
Syntax
[CreateAssetMenu(fileName = "PlayerInventoriesHelper", menuName = "Economy Tools/Player Inventories Helper")]
public class PlayerInventoriesHelper : ScriptableObject
Fields
action
Action to take on the inventory
Declaration
[Header("Inventories Helper")]
public PlayerInventoriesHelper.InventoriesAction action
Field Value
Type | Description |
---|---|
PlayerInventoriesHelper.InventoriesAction |
instanceDataJson
Instance json
Declaration
[Header("Update Instance Settings")]
[TextArea]
public string instanceDataJson
Field Value
Type | Description |
---|---|
string |
inventoryItemId
InventoryItem id to affect
Declaration
[Header("Add Instance Settings")]
public string inventoryItemId
Field Value
Type | Description |
---|---|
string |
playersInventoryItemId
Inventory item to affect
Declaration
public string playersInventoryItemId
Field Value
Type | Description |
---|---|
string |
Methods
InvokeAsync()
Used to trigger the call to the Economy Service using the options set in the inspector.
Declaration
public void InvokeAsync()