Skip to main content

ItemContainer.GetUsedItemCategorySlots

Declaration#

public Int32 GetUsedItemCategorySlots(GDTKItemCategory category)

Parameters#

NameDescription
categoryCategory to get count for

Description#

Get number of slots used in a category

Usage#

using NullSave.GDTK.Inventory;using UnityEngine;
public class Example : MonoBehaviour{
    public void ExampleMethod(ItemContainer target)    {        int result = target.GetUsedItemCategorySlots(InventoryDatabase.instance.itemCategories[0]);    }
}