Skip to main content

Introduction

This component provides the ability to display a list of Recipes.

"Recipe List UI"

Fields#

NameDescription
SourceDetermine if source is a Direct Reference or in the Tool Registry
KeyKey used to find source
Only Known RecipesOnly show recipes known to user
Scroll RectTransform to place prefabs inside
Selected Item UIUI used to display selected item details
Category SourceUI element providing selected category
FiltersList of filter/sort plugins
On Can Craft SelectedEvent raised when selected item can be crafted
On Cannot Craft SelectedEvent raised when selected item cannot be crafted
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
contentGets the RectTransform used for housing data
contentScrollRectScrollRect housing content (if any)
componentSourceGets the associated Inventory used to get components
lockInputGets/Sets if input is locked
activeDisplayGets the currently active display
selectedIndexGets/Sets the selected index

Methods#

NameDescription
AddSortFilterPluginAdd a new Sort/Filter plugin
ClearClear all items
ClearSortFilterPluginsClear all Sort/Filter plugins
CraftSelectedCraft the select item
CycleSortCycle between sort mods
GetSortFilterPluginGet Sort/Filter plugin of type T
ReloadReload the data
CycleViewCycle between available UI Displays
GetSelectedItemGet the selected item of type T
SetSelectedItemSet the selected item of type T