Skip to main content

Merchant.GetEquippedItemByGroup

Declaration#

public virtual GDTKItem GetEquippedItemByGroup(string groupName)

Parameters#

NameDescription
groupNameGroup to get

Description#

Get the item currently equipped to a group name

Usage#

using NullSave.GDTK.Inventory;using UnityEngine;
public class Example : MonoBehaviour{
    public void ExampleMethod(Merchant target)    {        GDTKItem result = target.GetEquippedItemByGroup(InventoryDatabase.instance.equipSlots[0].info.groupName);    }
}