Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

API Access Confusion

Discussion in 'World Building' started by TheGabelle, Jul 7, 2019.

  1. TheGabelle

    TheGabelle

    Joined:
    Aug 23, 2013
    Posts:
    242
    C# is far from my primary language so bare with me.

    I am trying to use ProBuilder for procedural mesh generation. I created an .asmdef and pointed to the correct ProBuilder references and created respective using statements, enabling me to do super basic things like using ShapeGenerator from my own scripts. This is simply not enough control and I'm not sure how to gain access into deeper classes like poly2tri since everything is hidden behind access modifiers (non-public classes primarily). I explored the potential for a facade class, but didn't get anywhere.

    What must I do so I can use the deeper classes?
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,520
    I can't answer this in the context of ProBuilder specifically, but you certainly don't need ProBuilder to do procedural geometry creation in Unity3D.

    Unity3D is just about the hands-down easiest engine to do procgen in, plus there's tons of tutorials and sample packages out there that give you a good jumping-off point.

    I actually have a package too called makegeo with some examples.

    MakeGeo is presently hosted at these locations:

    https://bitbucket.org/kurtdekker/makegeo

    https://github.com/kurtdekker/makegeo

    https://gitlab.com/kurtdekker/makegeo