v3.1.2
2020.3+

Class PlayerInventoriesHelper

Inheritance
PlayerInventoriesHelper
Inherited Members
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
Namespace: Unity.Services.Economy.Tools
Syntax
[CreateAssetMenu(fileName = "PlayerInventoriesHelper", menuName = "Economy Tools/Player Inventories Helper")]
public class PlayerInventoriesHelper : ScriptableObject

Fields

action

Declaration
[Header("Inventories Helper")]
public PlayerInventoriesHelper.InventoriesAction action
Field Value
TypeDescription
PlayerInventoriesHelper.InventoriesAction

instanceDataJson

Declaration
[Header("Update Instance Settings")]
[TextArea]
public string instanceDataJson
Field Value
TypeDescription
String

inventoryItemId

Declaration
[Header("Add Instance Settings")]
public string inventoryItemId
Field Value
TypeDescription
String

playersInventoryItemId

Declaration
public string playersInventoryItemId
Field Value
TypeDescription
String

Methods

InvokeAsync()

Used to trigger the call to the Economy Service using the options set in the inspector.

Declaration
public async void InvokeAsync()