Equipment Window UGUI

Scripting with the EquipmentWindowUGUI class.

The EquipmentWindowUGUI class is the Inventool's equipment window.

Fields & Properties

Name
Description
Type
Access

equipmentTitle

The equipment title element.

TextMeshProUGUI

protected

slotContainer

The object that contains all equipment slots.

GameObject

protected

closeButton

The close button.

Button

protected

rotationResetButton

The button that resets the character viewer rotation.

Button

protected

rows

A list of all equipment slot rows.

GameObject[]

protected

equipmentSlotElements

A list of all equipment slot elements.

List<EquipmentSlotElementUGUI>

protected

characterViewerElement

The character viewer element.

CharacterViewerElementUGUI

protected

characterViewer

The active character viewer.

CharacterViewer

public

Active Instance

You can get the active EquipmentWindowUGUI instance with EquipmentWindowUGUI.Instance. Ensure there's an instance of it in your scene before using this field.

Opening & Closing

Open

Call the Open method when the player wants to open their equipment.

EquipmentWindowUGUI.Instance.Open();

Close

Close simply closes the window.

EquipmentWindowUGUI.Instance.Close();

Toggle

Optionally, you can use Toggle to open or close the window.

EquipmentWindowUGUI.Instance.Toggle();

Last updated