private void CreateUIItemSlot(int index, Inventory.InventorySlot invSlot) { UIItemSlot slot = Instantiate(itemSlotExample, contentView).GetComponent <UIItemSlot>(); slot.Set(invSlot); slot.name = "[" + invSlot.item.name + "]"; slot.gameObject.SetActive(true); }