Shop Window UGUI
Scripting with the ShopWindowUGUI class.
The ShopWindowUGUI
class is the Inventool's enchanting window.
Fields & Properties
shopItemElementPrefab
The shop item element prefab.
ShopItemElementUGUI
protected
inventoryFilterPrefab
The filter prefab.
InventoryFilterUGUI
protected
shopTitleLabel
The shop title.
TextMeshProUGUI
protected
closeButton
The close button.
Button
protected
shopFilterScroll
The shop filter scroll rect.
ScrollRect
protected
shopScroll
The shop scroll rect.
ScrollRect
protected
activeShopkeeper
The shopkeeper currently being interacted with.
Shopkeeper
protected
loadedShopItems
A list of shop items.
List<ShopItemElementUGUI>
protected
shopFilters
A list of shop filters.
List<InventoryFilterUGUI>
protected
selectedShopFilter
The currently shop filter.
InventoryFilterUGUI
protected
Active Instance
You can get the active ShopWindowUGUI
instance with ShopWindowUGUI.Instance
. Ensure there's an instance of it in your scene before using this field.
Open
Call the Open
method when the storage window should be opened. This method requires a Shopkeeper
reference as a parameter.
Close
Close
simply closes the window.
Last updated