Search Unity

uBuild: In-game modular building system

Discussion in 'Works In Progress' started by CodeerThijmen, Oct 15, 2016.

  1. CodeerThijmen

    CodeerThijmen

    Joined:
    Oct 14, 2015
    Posts:
    29
    Hi, I'm working on a system called uBuild. It's a modular in-game building system.
    Currently you can build using a variety of different pieces and it saves buildings using PlayerPrefs.



    In further updates, I'm going to add lots of new features, including:

    - Layer system
    - Furniture placement
    - Interact able doors & windows
    - New pieces

    Please reply for questions or suggestions.
     
    DevMember likes this.
  2. CodeerThijmen

    CodeerThijmen

    Joined:
    Oct 14, 2015
    Posts:
    29
    I've just updated uBuild.
    It now has a layer system and interact able doors + windows.



    I hope you like it. Please reply for questions/suggestions.
     
    Last edited: Nov 2, 2016
  3. khos

    khos

    Joined:
    May 10, 2016
    Posts:
    924
    How much will it cost, how can I get it? :)
     
  4. CodeerThijmen

    CodeerThijmen

    Joined:
    Oct 14, 2015
    Posts:
    29
    Hi, thank you for replying.
    I've added furniture placement and descriptions and after the documentation is done, I'll put it on the Asset Store.
    It will probably cost 15$.
     
  5. khos

    khos

    Joined:
    May 10, 2016
    Posts:
    924
    Cool, will you be able to save the data to external file maybe?
     
  6. CodeerThijmen

    CodeerThijmen

    Joined:
    Oct 14, 2015
    Posts:
    29
    Hi, currently it uses Unity's build-in PlayerPrefs system to save data.
    It rebuilds your buildings using object types, positions and rotations.
     
  7. khos

    khos

    Joined:
    May 10, 2016
    Posts:
    924
    Ah ok thanks, no serialisation yet, but looks good :)
     
  8. CodeerThijmen

    CodeerThijmen

    Joined:
    Oct 14, 2015
    Posts:
    29
    Thank you. I've actually considered serialization, but I think PlayerPrefs are much easier to edit. May I ask you, why do you think serialization would be a better option?
     
  9. khos

    khos

    Joined:
    May 10, 2016
    Posts:
    924
    Wouldn't that allow you to save / load your saved objects to external files, then players can share maps etc.
     
  10. CodeerThijmen

    CodeerThijmen

    Joined:
    Oct 14, 2015
    Posts:
    29
    Oh okay, that would be cool. For now, I'll stay with PlayerPrefs since the whole system is based on it (layers, names, player position, etc.). Maybe I can implement serialization in further updates, but than I would have to redo the entire system...
     
  11. CodeerThijmen

    CodeerThijmen

    Joined:
    Oct 14, 2015
    Posts:
    29
    Hi, uBuild is now on the Asset Store.
    Here's the latest demo:



    I hope you like it. Reply if you have questions or suggestions.
     
  12. dxgriego

    dxgriego

    Joined:
    Nov 9, 2017
    Posts:
    3
    Is it easy to customise? Like for example, I want to be able to make my own bui for it, my own models, maybe add an inventory system to it?
     
  13. Tiny-Tree

    Tiny-Tree

    Joined:
    Dec 26, 2012
    Posts:
    1,301
    did you separate input from other logic? so its easy to add support for different platform like AR, mobile etc..
     
  14. CodeerThijmen

    CodeerThijmen

    Joined:
    Oct 14, 2015
    Posts:
    29
    Yes it's using Unity's UI system so it's quite easy to modify. You can add pieces easily as well. It doesn't yet contain an inventory system but it does include a simple example that uses resources in order to place new pieces. Also, if you have trouble changing the interface or integrating your inventory you can always contact me via email.
     
  15. CodeerThijmen

    CodeerThijmen

    Joined:
    Oct 14, 2015
    Posts:
    29
    You can change some keyboard keys in the inspector and if you have trouble changing the input I'd be happy to show you how to do it. Mobile input would be quite hard since uBuild contains a lot of options that use keyboard input. To integrate this into mobile, the system has to be changed a lot so it has less features and therefore less input to handle.
     
  16. Itsmmmarivic

    Itsmmmarivic

    Joined:
    Jan 31, 2018
    Posts:
    3
    Hi, I just want to ask if it is possible to import some stuffs from sketchup and add it to the inventory using this asset? Thanks.
     
  17. Itsmmmarivic

    Itsmmmarivic

    Joined:
    Jan 31, 2018
    Posts:
    3
    do this asset have an inventory system where I can actually add new pieces?
     
  18. Itsmmmarivic

    Itsmmmarivic

    Joined:
    Jan 31, 2018
    Posts:
    3
    do you have tutorials?
     
  19. CodeerThijmen

    CodeerThijmen

    Joined:
    Oct 14, 2015
    Posts:
    29
    Hi, you can add new pieces in the editor (please see the screenshot). There's no video tutorials for uBuild but it comes with documentation explaining how you can setup new pieces.
     

    Attached Files:

  20. Treacle-Games

    Treacle-Games

    Joined:
    Aug 24, 2015
    Posts:
    23
    This is a great asset, are planning to enable the changing of textures?
    For example the interior walls having a different texture and floors having carpet.

    Regards
    Mark
     
  21. CodeerThijmen

    CodeerThijmen

    Joined:
    Oct 14, 2015
    Posts:
    29
    Hi, I'm working on a big update for uBuild including mobile controls and multiple scene support, so I will also look into this for the update.
     
  22. csofranz

    csofranz

    Joined:
    Apr 29, 2017
    Posts:
    1,016
    HI there,

    i see that uBuild currently (in the asset store) is only 2018.x and up. Is there a 2017-compatible Version?

    Cheers,
    -ch
     
  23. CodeerThijmen

    CodeerThijmen

    Joined:
    Oct 14, 2015
    Posts:
    29
    Hi, yes the latest update for uBuild was made in Unity 2018 so I submitted the asset using that version. I can check the asset for Unity 2017, but I'm not sure if that'll work.
     
  24. csofranz

    csofranz

    Joined:
    Apr 29, 2017
    Posts:
    1,016
    Thanks for the info - is there anything in the current Version that will prevent it from loading in 2017.x? I believe that if you re-submit to the store using 2017 the store will allow users of that Version to download as well
     
  25. CodeerThijmen

    CodeerThijmen

    Joined:
    Oct 14, 2015
    Posts:
    29
    Hi, I tried resubmitting using Unity 2017, but it breaks the prefabs and some of the scripts. If you would like to use uBuild, please try upgrading to Unity 2018 or higher.
     
  26. csofranz

    csofranz

    Joined:
    Apr 29, 2017
    Posts:
    1,016
    Thank you for the additional information. We currently can't go to 2018 because of its incompatibilities with some of the main shaders we are using. We'll be sure to revisit this great-looking asset if/when we can migrate.
     
  27. magique

    magique

    Joined:
    May 2, 2014
    Posts:
    3,750
    @CodeerThijmen This looks really good. Is it possible to use this with a console system game controller for input rather than keyboard/mouse?
     
  28. CodeerThijmen

    CodeerThijmen

    Joined:
    Oct 14, 2015
    Posts:
    29
    UBuild currently does not have game controller support, it does have Mobile and pc controls.
     
  29. magique

    magique

    Joined:
    May 2, 2014
    Posts:
    3,750
    OK, thanks for the quick reply.
     
unityunity