v3.1.2
2020.3+
Class 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
Type | Description |
---|---|
PlayerInventoriesHelper.InventoriesAction |
instanceDataJson
Declaration
[Header("Update Instance Settings")]
[TextArea]
public string instanceDataJson
Field Value
Type | Description |
---|---|
String |
inventoryItemId
Declaration
[Header("Add Instance Settings")]
public string inventoryItemId
Field Value
Type | Description |
---|---|
String |
playersInventoryItemId
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 async void InvokeAsync()