Skip to main content

Introduction

This component provides the ability to display a list of Recipe Component items.

"Recipe Component List UI"

Fields#

NameDescription
Scroll RectTransform to place prefabs inside
Selected Item UIUI showing details of the selected item
On Active Display ChangedEvent raised when the active display UI changes
On Selection ChangedEvent raised when selection changes
On Item AddedEvent raised when an item is loaded by the active display
On Item RemovedEvent raised when an item is removed by the active display
On Item ClickEvent raised when the item is clicked
On Item Double ClickEvent raised when the item is double-clicked
On DropEvent raised when an item is dropped on this one

Properties#

NameDescription
componentSourceGets the Inventory used to find components
contentGets the RectTransform used for housing data
contentScrollRectScrollRect housing content (if any)
recipeGets the loaded Recipe
activeDisplayGets the currently active display
selectedIndexGets/Sets the selected index

Methods#

NameDescription
ClearClear all items
LoadLoad data
ReloadReload the data
CycleViewCycle between available UI Displays
GetSelectedItemGet the selected item of type T
SetSelectedItemSet the selected item of type T