Key Item Element UGUI

Scripting with the KeyItemElementUGUI class.

The KeyItemElementUGUI class is used to represent a key item for the UGUI key items window.

Fields & Properties

Name
Description
Type
Access

button

The button.

Button

public

itemStack

The item stack reference.

ItemStack

public

nameLabel

The name label element.

TextMeshProUGUI

public

amountLabel

The amount label element.

TextMeshProUGUI

public

Set Item

The SetItem method sets an item stack.

myKeyItemUGUI.SetItem(myItemStack);

Last updated