Skip to content

Tinker UI

Tinkering involves both Crafting and Dismantling items, and the Tinker UI component allows to display a list of UI controls that handle the transformation.

Tinker UI

There are two distinct sections in this component, but both work very similarly: There is a container object where all available recipes/items are displayed, from where the user can pick one and begin the transformation process.

  • Filter By Parent allows to display only those Items that inherit, at some point, from the selected type. If none is set, it will not filter any items.
  • Selected UI references a Crafting UI or Dismantling UI component, which is used to display the currently selected Item from the list.

The following two fields allow to populate the list of Items:

  • The Content field must reference a UI game object which will be populated by an instance of a prefab for each element in the list.
  • The Prefab field references a prefab game object, which will be instantiated in the container object.

Prefab requires component

The Prefab field requires a Crafting Item UI or a Dismantling Item UI component in order to work. This will be automatically synchronized and refreshed with the information provided by the Tinker UI list.

Crafting Item UI

The Crafting Item UI component is both used when selecting an Item from the recipe list as well as to display each entry from the list.

Crafting Item UI

This component is automatically refreshed with the correct information about the current Item.

On Start & On Complete

The On Start and On Complete instructions are executed when either a dismantle or crafting operation starts, and successfully finishes. This is the perfect place to add sound and visual effects.

Dismantling Item UI

The Dismantling Item UI component is both used when selecting an Item from the available item list as well as to display each entry from the list.

Dismantling Item UI

This component is automatically refreshed with the correct information about the current Item.

Recover Chance is a value between 0 and 1 that determines the chance to recover each and every one of the ingredients that constitute the dismantled Item.

Back to top