Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

Using probuilder in game

Discussion in 'World Building' started by TDCreationStudios, May 31, 2018.

  1. TDCreationStudios

    TDCreationStudios

    Joined:
    May 16, 2018
    Posts:
    18
    Hello all; I have a question regarding the Probuilder/Progrids API.

    I was wondering, can the probuilder API be used in game - specifically for a survival type game I'm currently working on. My main interest is in creating walls and buildings in game, I think probuilder and progrids would be wonderful for this.
     
  2. gabrielw_unity

    gabrielw_unity

    Unity Technologies

    Joined:
    Feb 19, 2018
    Posts:
    971
    Hi! Yep, that's the what we created it for (mostly) :)

    Several people have made good use of it already- Manifold Garden, Melon Simulator, others. Sounds fun, keep us updated!
     
    Birudula and DebugLogWarning like this.
  3. TDCreationStudios

    TDCreationStudios

    Joined:
    May 16, 2018
    Posts:
    18
    Awesome. The thing is, I am not sure where to get started. I see lots of documentation for it being used inside the editor (very helpful documentation, by the way) - but I was more referring to it being used via scripting for the player to build out there own "house" in game. I'm not sure if that's what you was referring too?

    Thank you very much for your quick replies.

    I have a few more unrelated questions, would you like me to ask here or start a new thread?
     
  4. gabrielw_unity

    gabrielw_unity

    Unity Technologies

    Joined:
    Feb 19, 2018
    Posts:
    971
    Yep, I was referring to the in-game scripting :)

    If you download the Asset Store version, then look for the "API Examples" folder, there are several starter examples that should help get you moving :) One thing to be aware of, the API is currently changing a bit, nothing major but do expect anything you make now to require some changes in the future.

    Here is fine for any questions, sure!
     
    Birudula likes this.
  5. TDCreationStudios

    TDCreationStudios

    Joined:
    May 16, 2018
    Posts:
    18
    Awesome! Thank you so much!

    Well, tree main questions I can think of, off hand.

    The first being, do you know how well this would play with Unity's new ECS? I know you aren't so much the "scripting" guy, but as I understand it, to take full advantage of Unity's ECS, you want most in game objects to derive from the ECS system. Obviously, currently Probuilder uses the GameObject class, so I'm wondering if you'll have any support for that?

    Secondly, what about the new Scriptable Render Pipeline, one of the things I love about Probuilder is the texture painting; but this can only be achieved with the probuilder shaders. Do you plan support for these?

    And lastly; bit of a funny one. Do you plan on uploading more videos to your channel? I found them to be VERY helpful in learning probuilder, however I see there haven't been many new videos recently.

    Thank you very much for your time, it's been very helpful to know what I can do!
     
  6. Data007

    Data007

    Joined:
    May 13, 2018
    Posts:
    21
    Me and another are waiting on updates to ProbuilderVR(seperate thread) would love update on that to along with some more videos.
     
  7. gabrielw_unity

    gabrielw_unity

    Unity Technologies

    Joined:
    Feb 19, 2018
    Posts:
    971
    Hi! Alright, let's see...

    1. ECS- I wouldn't worry to much about this one yet. And of course we'll do our best to make it an easy transition when the time comes :)

    2. You can actually create your own shaders, use others, etc- the PB shaders are just examples. If the shader you use/create supports vertex colors, it'll work :)

    3. Yep! Nothing immediate planned, but we do want to get new tutorials on the move.

    Regarding PB-VR, have you seen the new instructions? Should be easy to follow now (www.procore3d.com/probuilder-vr)
     
  8. Data007

    Data007

    Joined:
    May 13, 2018
    Posts:
    21
    Yes seen does that mean it works with 2018 unity?
    What off some improvments?
     
  9. TDCreationStudios

    TDCreationStudios

    Joined:
    May 16, 2018
    Posts:
    18
    Awesome! Thank you so much for your help! Are there any plans on covering the scripting API, by chance? From the look of things, it requires a bit of knowledge of how shapes work in terms of code; which leaves me a little confused. I did take a look through the demo project and on the github, but they're a little more limited then what I was planning (although still great!) any plans on tutorials/documentation? Thanks again!
     
  10. ibyte

    ibyte

    Joined:
    Aug 14, 2009
    Posts:
    1,051
    Last edited: Jun 5, 2018
  11. Pavel_D

    Pavel_D

    Joined:
    Nov 17, 2013
    Posts:
    14
    Corrently this files is not important, just delete it(../Runtime/Unity.ProBuilder.Examples.asmdef and ../Editor/Unity.ProBuilder.Examples.Editor.asmdef), and you can continue (Works on Unity 2018.1.5f1 64bit)
     
    rgjones likes this.
  12. LordYabo

    LordYabo

    Joined:
    Feb 21, 2013
    Posts:
    5
    I put the examples into a fresh 2018.3 project with probuilder downloaded as a package and I get
    Assembly has reference to non-existent assembly 'Unity.ProBuilder' (Assets/API Examples/Runtime/Unity.ProBuilder.Examples.asmdef)

    How did you guys get it to work with the package manager version (ver 4) as opposed to the asset store version (ver 2.9)?
     
  13. kaarrrllll

    kaarrrllll

    Unity Technologies

    Joined:
    Aug 24, 2017
    Posts:
    552
  14. wade_tsao

    wade_tsao

    Joined:
    Aug 14, 2018
    Posts:
    2
  15. usmanbaig369

    usmanbaig369

    Joined:
    Jul 27, 2019
    Posts:
    2
     
  16. usmanbaig369

    usmanbaig369

    Joined:
    Jul 27, 2019
    Posts:
    2

    sir i wana use probuilder libiraray on play mode mean runtime in unity ? how can i make?