Skip to content

VladimirKobranov/ProceduralBuildingUnity

Repository files navigation

Procedural Building in Unity in C#


Procedural building in Unity engine made by using C#.

Image

Generated building


Functionality:

  1. Set by counting elemets by x,y or z axis.
  2. Working with arrays of objects, randomizing them by seed.
  3. Brandmauer (firewall) option(if so, removes stairs from brandmauer wall).
  4. Create a facade stairs by selecting facade and position on it, or choosing random position.
  5. Added wall\roof accessories by percentage of spreading and randomizing them by seed.
  6. Can transfer position and dimensions from selected scene object.
  7. Includes randomly generated walls\accessories.

Project files: Google Disk
Explanation of logic(on Russian): Habr

Pics:

Image

Generated building

Image

With brandmauer

Image

With different stairs position

Image

Small

Image

Even smaller

Image

Huge one

YouTube

YouTube example