Search Unity

crafting system

Discussion in 'General Discussion' started by frysbea1225, Dec 5, 2018.

  1. frysbea1225

    frysbea1225

    Joined:
    Dec 5, 2018
    Posts:
    3
    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.
     
  2. yoonitee

    yoonitee

    Joined:
    Jun 27, 2013
    Posts:
    2,363
    Look under GameObject>UI for all the UI objects like buttons and so on.
     
  3. frysbea1225

    frysbea1225

    Joined:
    Dec 5, 2018
    Posts:
    3
    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.
     
  4. yoonitee

    yoonitee

    Joined:
    Jun 27, 2013
    Posts:
    2,363
    You might just have to learn a bit of scripting. There's some tutorials on the website.
     
  5. Somian

    Somian

    Joined:
    Nov 22, 2011
    Posts:
    38
    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".
     
  6. ClaudiaTheDev

    ClaudiaTheDev

    Joined:
    Jan 28, 2018
    Posts:
    331
    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.
     
  7. frysbea1225

    frysbea1225

    Joined:
    Dec 5, 2018
    Posts:
    3
    OK thank you for your answers I think it can help me a lot
     
  8. BlankDeedxxAldenHilcrest

    BlankDeedxxAldenHilcrest

    Joined:
    Jul 10, 2018
    Posts:
    292