Equipment Window UGUI
Scripting with the EquipmentWindowUGUI class.
The EquipmentWindowUGUI
class is the Inventool's equipment window.
Fields & Properties
equipmentTitle
The equipment title element.
TextMeshProUGUI
protected
slotContainer
The object that contains all equipment slots.
GameObject
protected
gridLayoutGroup
The equipment slot grid layout.
GridLayoutGroup
protected
closeButton
The close button.
Button
protected
rotationResetButton
The button that resets the character viewer rotation.
Button
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.
Close
Close
simply closes the window.
Toggle
Optionally, you can use Toggle
to open or close the window.
Last updated