Search Unity

  1. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  2. Want more efficiency in your development work? Sign up to receive weekly tech and creative know-how from Unity experts.
    Dismiss Notice
  3. Participate with students all over the world and build projects to teach people. Join now!
    Dismiss Notice
  4. Build games and experiences that can load instantly and without install. Explore the Project Tiny Preview today!
    Dismiss Notice
  5. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice
  6. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice

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,144
    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,144
    You might just have to learn a bit of scripting. There's some tutorials on the website.
     
    BlankDeed likes this.
  5. Somian

    Somian

    Joined:
    Nov 22, 2011
    Posts:
    36
    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. Gor-Sky

    Gor-Sky

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

    BlankDeed

    Joined:
    Jul 10, 2018
    Posts:
    151
    If, else, then.