🛠️

Advanced: Inventory and Tools

By default, tools in Inventory will use a default icon and take the name of the GameObject.

If you want to change that:

  1. Right click on the object and select PaleBlueAdd Tool Info
  2. image
  3. This will add Tool Info component to this object, allowing you to set its displayed name and Icon for the Inventory
  4. When Inventory detects an object with a Tool Info component on it, it will display the specified name and icon

Add Items to Inventory

Inventory allows a user to check items they have at any time during the flow.

Here’s how you can add an item straight into the Inventory:

  1. Right click in Flow to Add node, then select PaleBlue → Add Item to Inventory
  2. In the properties window, select the Item to be added into inventory at this step
  3. image
  4. We’ve selected a Hammer. Note that the item needs to have a Rigidbody on it.
  5. Here’s what your flow may look like afterwards
  6. image
  7. That’s it! Now let’s test it.
  8. Run the Play mode in Unity. After Flow reaches this node, the user will be able to open the inventory and select our tool in there.
  9. image