By default, tools in Inventory will use a default icon and take the name of the GameObject.
If you want to change that:
- Right click on the object and select PaleBlue → Add Tool Info
- This will add Tool Info component to this object, allowing you to set its displayed name and Icon for the Inventory
- 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:
- Right click in Flow to Add node, then select PaleBlue → Add Item to Inventory
- In the properties window, select the Item to be added into inventory at this step
- We’ve selected a Hammer. Note that the item needs to have a Rigidbody on it.
- Here’s what your flow may look like afterwards
- That’s it! Now let’s test it.
- 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.