Procedural building in Unity engine made by using C#.
Generated building
Functionality:
- Set by counting elemets by x,y or z axis.
- Working with arrays of objects, randomizing them by seed.
- Brandmauer (firewall) option(if so, removes stairs from brandmauer wall).
- Create a facade stairs by selecting facade and position on it, or choosing random position.
- Added wall\roof accessories by percentage of spreading and randomizing them by seed.
- Can transfer position and dimensions from selected scene object.
- Includes randomly generated walls\accessories.
Project files: Google Disk
Explanation of logic(on Russian): Habr
Pics:
Generated building
With brandmauer
With different stairs position
Small
Even smaller
Huge one
YouTube example