Hi ! I am a beginner in unity, I create a simple survival game, but I block at the stage to create a crafting menu like this. if it's possible, could anyone help me? thanks.
thank you for your answer so fast, but I'm looking for a script allowing me to create objects from materials available in the inventory.
I would make a "CraftingItem" or something class that can hold a reference to two or more "CraftingItem"s of the same type as "ingredients" then you can have nested crafting and craft things out of other craftable things. Your inventory can then hold a number of instances of "CraftingItem".
There is this cool free asset Inventory Master, which you can download for code reference or even use it like it is with some tweaking. https://assetstore.unity.com/packages/tools/gui/inventory-master-ugui-26310 It has an inventory and crafting system via blueprints. It helped me a lot in the beginning. Now i have my own system but thanks to Inventory Master i learned a lot to be able to do it myself.