Unity building generator
Makes boxes into buildings
I made a building generator in Unity. Here's how it works.
The first iteration was a "building builder" that automatically generated a multiple story building. It's divided into sections that sit atop one another like layers on a cake. Each section has a "tileset", which can be a type of wall, roof or window.
I later expanded upon this to allow for more complex shapes. Now everything is made out of boxes and "pyramids" -- a pyramid being a box with one or more sloping sides. A gizmo keeps the dimensions of the shapes integers.
Then you select the parent building and click on Regenerate. An algorithm goes through each slope or wall and maps it to a textured mesh. Windows are generated every 2 tiles. Here's what that looks like (with some manual editing for flavor):
And here are all the possible tiles:
The funky blocks on the right are physics colliders. They are invisible in Unity.