Skip to main content

Introduction

This component displays information about a Recipe

"Recipe UI"

Fields#

NameDescription
Component ListList displaying required components
Rarity UIUI showing rarity details
Category UIUI showing category details
Results UIList displaying items crafted
On Has RecipeEvent raised when a valid recipe is loaded
On Has No RecipeEvent raised when no recipe is loaded
On Can CraftEvent raised when recipe can be crafted
On Cannot CraftEvent raised when recipe cannot be crafted
On InstantEvent raised when recipe crafts instantly
On DelayEvent raised when recipe crafts after time
On KnownEvent raised when recipe is known by the player
On UnknownEvent raised when recipe is unknown to the player
On SelectedEvent raised when the object is selected
On DeselectedEvent raised when the object is deselected
On Pointer EnterEvent raised when the pointer enters the object area
On Pointer ExitEvent raised when the pointer exits the object area
ImageImage used to display Sprite
ColorizeApply color to image
Preserve AlphaPreserve existing alpha
LabelsList of labels and formats for displaying information
On ClickEvent raised when the item is clicked
On Double ClickEvent raised when the item is double-clicked
On Left ClickEvent raised when the item is left-clicked
On Right ClickEvent raised when the item is right-clicked

Properties#

NameDescription
canCraftGets if the recipe can be crafted
componentSourceGets the Inventory used to get components
recipeGets the loaded Recipe
recipeRarityRarity of the loaded recipe
categoryGets the loaded Recipe Category
selectedGets/Sets if the object is selected
infoGets/Sets information about the object

Methods#

NameDescription
CraftCraft the Recipe
LoadLoad data
UnloadUnloads the Recipe