# Building Construction Tool Blueprint

This is the most complex tool in this project and it is based on the Building Modular Piece Blueprint. Basically, it spawns several “Building Modular Pieces” and sets the parameters of each one in order to create a building. The positioning of these pieces is based on an algorithm made in the Blueprint.

To generate a building, you should have in the scene a Controller Modular Building (Blueprint instance) and the “Building Construction tool” (Utility Widget) opened in the editor.

<figure><img src="https://2314585985-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FB9CZin4WWsXZRIgGnqEV%2Fuploads%2Fbz6Lc1hviOqQvUXncdnw%2FGraphHowToGenerateBuilding.jpg?alt=media&#x26;token=8c9a11ee-0dc4-46c5-80e5-c182f2273d56" alt=""><figcaption></figcaption></figure>

## Generating Modular Building

### Building Construction Tool

Right-click on Building Construction Tool (/Blueprint/Building) and select “Run Editor Utility Widget”:

<div align="left"><figure><img src="https://2314585985-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FB9CZin4WWsXZRIgGnqEV%2Fuploads%2F0pcN7zwZ5JW2FaLytItc%2F2023-05-18_20h30_38.png?alt=media&#x26;token=f217c6bb-5672-43b5-92db-b99bd67fcf3c" alt=""><figcaption></figcaption></figure></div>

The UI of Building Construction Tool:

<div align="left"><figure><img src="https://lh5.googleusercontent.com/4BsyKVgSZGdiOT0NvKog9ZZRreHeXWlBOCvcJa51pt60rASCFAcYVOF1iSCcLJN-pE5bZpuW2LlpOAUxEVC0ZRjl67NcK3Lb5m-ctefr8n6Y82KBM40DIFr2nn64lw-aKA1dK7DMVwWZcps1r8zWPAwQpUDe6Yl4BgT8St_A_9sfmoYbOrH3jjinHsI8" alt=""><figcaption></figcaption></figure></div>

## Controller Modular Building

Drag and drop “B\_ControllerModularBuilding” in the scene (…/Blueprint/Building). Each building will have a Controller that will help you to generate and edit the building. If you’ll have the “Preview” checkbox true, the Controller will appear as a preview building which will help you to see how the final building will look like. The controller will be hidden in the game.

<div align="left"><figure><img src="https://lh4.googleusercontent.com/ghpGhtKZvPMB1_UlUs8u0qkOTn5KICmGHtSFfoqfaAl8xM95znQOX3qE4wLSHCwkuSDVqRlQ-AAp6wlSJ1A9zjWaBUK94WlHwp5jT8kDJwt51sUfvcw7qB7svgz-CKVpgXjPV7I_r74Y8oWoynD8v0zyKhNOh0-Z4SX232yuMXclwlwTVR3AYN61AEkk" alt=""><figcaption></figcaption></figure></div>

To generate the building, there are many parameters on the “B\_ControllerModularBuiling” that can be changed, depending on the style you want to achieve.&#x20;

After you set the parameters, select the controller of the building and press “Generate” (from Building Construction Tool UI).

&#x20;If the result is not satisfactory, you can change the parameters and press "Generate" again until the desired result is achieved.

<div align="left"><figure><img src="https://lh5.googleusercontent.com/U5Hx72iDtxB3n5BxNjCH6KKsnNMLyYs2o40-FLvaTsp919Eb0vyvMUB7rzwO3zcrAbL6_JcGj-YsfeV0Cl_LXx7fSEgCmfYgVrJ4jCBth8jWmKfovUPIrus-RR_s9_kZAh4jhyICm2iheOiNgBrNP6t3pXFBfwUDyI0X9KpXE6dapI2oJBcE9H5WMvUI" alt=""><figcaption></figcaption></figure></div>

<figure><img src="https://2314585985-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FB9CZin4WWsXZRIgGnqEV%2Fuploads%2FMD10aCUBQ7YdTpUKSA2H%2FBuildingsType.jpg?alt=media&#x26;token=e280c66a-0862-40c9-808a-1733ec7e065f" alt=""><figcaption><p>Examples of generated buildings</p></figcaption></figure>

***Tip:*** You can activate game mode by pressing “G” and this can help you to see better how the building looks without the editor UI and Modular Building Controllers.

<figure><img src="https://2314585985-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FB9CZin4WWsXZRIgGnqEV%2Fuploads%2Fw4hcAgDNsCYXci3U6mtw%2FGameMode.jpg?alt=media&#x26;token=844b8092-8764-446a-8a54-a5910bab8521" alt=""><figcaption></figcaption></figure>

You can also have a non-rectangular building like this but it can appear some small gaps depending on the angle that should be "fill" manually with other models:

<figure><img src="https://2314585985-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FB9CZin4WWsXZRIgGnqEV%2Fuploads%2FRsssN2OppGx5IOOIju0w%2Fimage.png?alt=media&#x26;token=ec3b5445-08e6-42a3-b46b-0786200fe295" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2314585985-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FB9CZin4WWsXZRIgGnqEV%2Fuploads%2FYKLTfcRF8TDn2QBd5dKi%2Fimage.png?alt=media&#x26;token=c1897153-244b-431f-a1bf-b396264c620a" alt=""><figcaption></figcaption></figure>

## Interior Category

Video Link - Generate Buildings with the interior: <https://youtu.be/HtZGLKDppIU>

For each floor of a building, you can check the "Floors Interior" parameter to have the interior. For example, if you check the "0", the ground floor will have interior.

If you check "All floors have interiors", it will check all the checkboxes from "Floors interior"

<div align="left"><figure><img src="https://2314585985-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FB9CZin4WWsXZRIgGnqEV%2Fuploads%2FPNqIaLNCzA6nOCKQCOD9%2F2023-05-15_20h50_14.png?alt=media&#x26;token=90608db5-9080-4564-96f3-a138b0bdaa69" alt=""><figcaption></figcaption></figure></div>

<figure><img src="https://lh5.googleusercontent.com/xUMW-muBB1oIkAbykRyJ_K_Mdg-4AzTgbh1cZhbOQYqWTk-Aps8Cg83EkzuUF0aP_s4bnL446NidENi9xSjGf1ht1p6emZ1DlHd4IJ1ZgEyP3IHPX1qagb_kqUMDEKNLHW0Gwz53VfHrRCT8JlTWU9aekJLMQzGACu9ugVAnwFfF825RvYv7K_f8Vcvt" alt=""><figcaption><p>Example interior floor</p></figcaption></figure>

It is ok to have some buildings with interiors, but I don’t recommend having interiors for all the buildings from a scene because if they’ll have furniture and other props, it will be hard to optimize the scene overall.

## Roof/Floor Blueprint

<div align="left"><figure><img src="https://2314585985-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FB9CZin4WWsXZRIgGnqEV%2Fuploads%2FdwDYsdH0BAemwNbTVqcD%2F2023-05-15_20h51_17.png?alt=media&#x26;token=8d77b7bf-a4e0-439f-abfc-f1a968e2e2db" alt=""><figcaption></figcaption></figure></div>

Example of roof/floor with “Generate Sides” off/on:

<figure><img src="https://lh4.googleusercontent.com/Dgn8c9a6qtjobw9kSLgjcthoBks9nbxl5yxe9cwa2-nXKvLEs5-UfeMAGg_wSVnX69cxrg7Fi3U5mh8IEeEUJqkn4zZo6XDVZy5IClCApHkJjvzAsV4yWkiTkXSeaSlM7E7M4qNUTyYL1UzTqNaaqzHts8d9XmUASXO3A9xVpn4PZujaIExvABTcLDCX" alt=""><figcaption></figcaption></figure>

The floors will be generated for the floors that have interior.

“Recalculate The Spline” will make the angles equal to 90 degrees and snap the points (grid 10 units).

<br>

The shape can be adjusted if you modify the spline, this could be useful if the building has interior and you want to change the shape of the floor to add basic stairs:

<div align="left"><figure><img src="https://lh5.googleusercontent.com/eH_V9h2uDIlqP3ETJk5LWlQbOF9G6MM3x7LI6s9ehj67R8EYP74NT3vk1C1ATBrsI-_J6FwhxqlbZ4FQDhSbNx_oqh2LOuKbqDpI_ngz--AEbHEqWQK1HPugodYv47MMsXKVmeBNMXY3CUG_4DXUdi8NIbpqSLSVuRuQERoDzJqPeUOCZhKdCcytNJ1J" alt=""><figcaption></figcaption></figure></div>

## Door Blueprint

The player can press the E key to open/close the door.

<figure><img src="https://lh5.googleusercontent.com/hlAGpdcNgayfqxBfEbTHrkxWHqFxZ8iUdabwRvl_pQ-vVSLSYajLX1wrLGHVK2WApKLpT_lGlERqH72qO82_3wy8r2eTFUP0wQcHOq13keZdVbW-iMg6yzeI2tHcDqAutVf4HnBdhoOzQWCDg_9Wf43wdmIxKeUqUtRUcIAYE4RCpLNCyvE4yZ5Qm002" alt=""><figcaption><p>Different types of doors</p></figcaption></figure>

Double door works only if the door doesn’t have “Frame” mesh:

<div align="left"><figure><img src="https://lh6.googleusercontent.com/3RLuvPRUdMJhLh8-DApFciCVPyVC04GLBLKNDBPgKHQvxi0zz2F8Wn7h8S6Cd_S-7Ud1olOrW0Q41IVIBrsbl06q8uS4rMf0U5FFljNbsx-xc1UcoqmsidFIExIpd2ZkZDixLh8Qebg5nRazYqmA-DScZbNKlzVK2XArmE_B_YTN3yXedvCuytMVACTg" alt=""><figcaption></figcaption></figure></div>

If a modular piece blueprint has an interior and a door in the hierarchy, the type/material can be changed from the modular piece parameter (door category).

## Shape and Dimensions

<div align="left"><figure><img src="https://lh3.googleusercontent.com/pL2dtnSXewbT3B9TLfvm_Tp_cr_M2jS-tVA-xFK5NUFEA07TOvoztIpJ4k-gt65BEmoMA2VzVfQPd-0N98EooXzX4YZ3B1ZOguSO3wArcwVnPgq8BXlrE0rnPkmKImc70WdBVafKFtDP3eHRlaIzk351OTiOxC1CLQTeRYmqFXpg8w4JAbDOqKIKXD_9" alt=""><figcaption></figcaption></figure></div>

The default shape is rectangular and you can adjust the dimensions of the building by changing the “Dimension 1” and “Dimension 2”.&#x20;

If “Custom Shape” is true, you can edit the spline of the controller to have a custom shape.&#x20;

It is preferable to have only right angles (90°), because the corner will use modular corner pieces.

If not, it can have some gaps at the corners that don’t have 90°:

**How to edit the custom shape**

After checking the “Custom Shape” checkbox, you can move any point of the spline, or add more. If you want to add a new point, you can select a point, hold ALT and move the point to a new position.

It is recommended to enable the “Preview” mode of the building when you are editing.&#x20;

If you want to transform in a shape with only right angles, you can press on “Recalculate spline - Right Angles”.

<figure><img src="https://2314585985-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FB9CZin4WWsXZRIgGnqEV%2Fuploads%2FyxrU6ACGx7BBwKKy443N%2FCustomShape%20(1).png?alt=media&#x26;token=7e6f0046-1591-4a85-923b-e7c4d3858ff2" alt=""><figcaption></figcaption></figure>

Press on “Recalculate the spline” and the spline will be recalculated to have all points snapped on the grid and each angle will be a right angle (90°):

<figure><img src="https://2314585985-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FB9CZin4WWsXZRIgGnqEV%2Fuploads%2FABJhMEyLYLviLwUN03GU%2FCustomShape%20(2).png?alt=media&#x26;token=59c5939a-b107-45fe-ba30-d98cc8f158d7" alt=""><figcaption></figcaption></figure>

After that, you can set the parameters of the Modular Building Controller and generate a new building in the desired shape:

<figure><img src="https://2314585985-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FB9CZin4WWsXZRIgGnqEV%2Fuploads%2FTALttct7jYGG0kpgBWa9%2FCustomShape%20(3).png?alt=media&#x26;token=c5fd6077-2eea-41aa-bf6b-0edd0ee88410" alt=""><figcaption></figcaption></figure>

Another example of a building having a custom shape:

<figure><img src="https://lh3.googleusercontent.com/S9_MoHJXpJwTvMuwuyOXzKb2cvLlY6N2K8ORJBRTiE61-M5cjO8uQzyBXNGjwjNjqCJMz89uhTi32uMbxtRMuMjL8pvv8JOdMRldjO9H76tx8KXJUXJKND2exWt6epeR02XmvtcsyoJecbvOR7yU5tzDaShsrLmOaWBF_IQqW3r39P9-FbRJ5sjSWXUn" alt=""><figcaption></figcaption></figure>

<figure><img src="https://lh6.googleusercontent.com/tVDeHziA10AbUkES66gJ_JSCjqIn9zm27GsabfkhpHbdrmbuFb3iJyGumcNnCqjokdZgM_rbOjBfteIooP-V5ZSd9c2Q4gXZ-QHq_6Rmth8Ry-W2A9GjfWBhfm0rwAIK78JkxKhKxuTKh12Lkw6vyG0IEJopdDKfScBfzw8oXVW_7zgJh1c3xATSI661" alt=""><figcaption><p>Example - Dimensions and Custom Shape</p></figcaption></figure>

## Ground Floor  &#x20;

![](https://lh6.googleusercontent.com/jA6ZGgzB8hh8pD0PxafvsXO10FuKq42y0sB_UatusGsqNTFDrgOtryZeNrAQgyo-AigeTNY0BjqmUX16SErg8ViqAQqO6tuxSsSuvB1bHkUQQHvdvGr4Eobpntc4bZ8oE6Beeu4OUhMQgQb5jOoNlCNSJtTdiIOR2fOUrY4pmiZejWO-NFODBsbTcOhF)

&#x20;If “Ground Floor” is checked, the building will have a ground floor. The “Ground Floor Variation” parameter will determine which modular pieces will be used to create the ground floor of the building.&#x20;

Both parameters should be set before generation.

**Facades And Sections**

![](https://lh3.googleusercontent.com/dP7p2pUJWEwldeLfu5fSd8ecdc_dbbdda7LJ-92Cb9Kgv-LxinrBgBtG_2_IGrm9prvObnZ44NBv-MWPfSjlOU9r_D8bwI33D2OfL_6KLpR_zSp3CvazJ2V2peOU0IIaXrLCVuZZXq9pR2hjmZQ2vJHM7N5tcEv4RwK13uqLplo6h67mlqQNqVjLcw3L)

Each element from “Sections – Number Of Floors” determines how many floors each section will have.&#x20;

Examples of buildings with different sections and number of floors:

<figure><img src="https://lh6.googleusercontent.com/5pTE_1mhEQoXMg2kGseaWtNzImyYgGj_cdrKtZE3Sr8pnU4SNsqF09NAkN-25lSspEgrrcyl8i3UJPZkt0r6eAv2b0RaweSAdccvTqc0cTEGPJ9htpDZb2nQ0efCigF3CTgyDv2787qZEiUsIO7QlRhVxTaoFiVhYLjMWqrhd3G-nIiuqh7PUn2yNJMM" alt=""><figcaption></figcaption></figure>

You can visualize the sections when you use the preview mode.

Facades:

<div align="left"><figure><img src="https://lh3.googleusercontent.com/CvgeCvIIpKyexaJvcOlsd1zOgCrjLanTTpmluNFGwPX1qWhQfHCT9Y0wwbh9bFkr5ElaXP-XMnvmSAlR4g3VYUowqv73y09YnByEw8gwVp96WIZaAqtWblmmdTzvQytUycwFJAsvd5MzcAS23nB4CdcZXLSlZK7fMJ8hnrHf3ni_QjP9hh1whqFHu8LT" alt=""><figcaption></figcaption></figure></div>

This array should have as many elements as the number of facades of the building.

Each facade can be front/back:

<div align="left"><figure><img src="https://lh3.googleusercontent.com/ZgPaJHtpD2N7YAVuwB8iW6-3k2f2O8KYZvYR-JFWSrqdx19arVGxNmqqwLmE5w6yi0vB4m-MnwCTr_gNsYLY6vcv9LJ6uyqihr_qx0WoK2bFGT9OR8i2D0-QyZLtMBIpOat2IaoFPsRrLGzCQd2SVva_CqbruEGLhlqd5RTE1YxjN2mAbeuuTxvB3XpW" alt=""><figcaption></figcaption></figure></div>

The pattern type of each facade can be:

1. Windows - all the modular pieces will be “windows” type
2. Simple -  all the modular pieces will be “simple” type
3. Alternative Even - the modular pieces will be an alternative pattern: one “windows”, one “simple”&#x20;
4. Alternative Odd - the modular pieces will be an alternative pattern: one “simple”, one “window” <br>

![](https://lh6.googleusercontent.com/RQ-VR20FuXmh7tUs2NhMVIu9ZDB9ybhxAqJTHp17BNr0-dt4hAXzSbhIcXQEySfFWsdKAbED9j4Hon1Ir0KDbGEHwTwQwCEefUkkGv7_9ckn1jllbDAA_SWhFUVMr3oc97QiROxMIyDO_wBHQu7GSRnuGi2LVaUn6ANRm6n2FrC70pOsbfMX6Ee8FZa7)

You can see the type of each facade in the preview mode.

Example Front-Windows and Front-Alternative odd. Preview vs Generated Building

<figure><img src="https://lh3.googleusercontent.com/I2b4ZLnWyAaQsAcMV8FX0WzPOSSAwpFx1taSfwyFzGg1IXVpc075xGuqDF4nSR62t3fYwWF5YHMhvyYdj2PtQ9GgGH00exooaZPlYtXmmI9MJIXxLhWjXWaK0GpdgBDwanUikzcd5QxanKggVj0GmPxpFt5xcw9qAoxH2IcWbkYCXTGzTE5JfoNrseNg" alt=""><figcaption></figcaption></figure>

Example Back-Simple and Back-Alternative Even. Preview vs Generated Building

<figure><img src="https://lh3.googleusercontent.com/eSWO2PHgWEbEu4Gl7Zll2LNTIsHn3yTkFTTpI73CCO-7nb2pYcijZ6iULBmHV5Qx_-mQkXlY_ZZERS5Gv9yhrx7PsIxPtoa5QXPffXdwk1T2lFUfDEWsq4xrA7kGRBufokmKKFwqPG69RrnRNo_0w0vSfb_TKoP9rQzxWKqwjkL0rFLn1pOubEYDl_CE" alt=""><figcaption></figcaption></figure>

The occluded facade helps when you have another building next to it, and that wall is not visible. This is very good for optimization reasons, to not have any objects that will never be seen.

Example Back-Simple and Back-Alternative Even Occluded (Number of non-occluded floors=3). Preview vs Generated Building:

<figure><img src="https://lh4.googleusercontent.com/M9yGT9mczT0KOTq9JzabbBWjIHX8Z4O3CulP73X0T6XsFvoNiYsyMetggtCzO4G0pawbapzId-JpU8u3DKyvE1XQiT9jDLUFtg4G-7tIO0ylW7G1UZEFpTuIEQ6fZFmZzBkEUNED4ctQoPMrBuXdrDfwYbVFSHhKgl6Dh57QeHSeLcdx7grOhR5GzKuo" alt=""><figcaption></figcaption></figure>

If a building has a custom shape, the facades of the walls connected by a concave corner should be both "front" or "back".

<figure><img src="https://2314585985-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FB9CZin4WWsXZRIgGnqEV%2Fuploads%2FDriheWPOJq3gVcgGtLTn%2F2020-12-17_00h39_04.png?alt=media&#x26;token=e1160944-2883-4efc-a75b-4accbacfea41" alt=""><figcaption></figcaption></figure>

<figure><img src="https://lh6.googleusercontent.com/VNEUjfLYPsrVvO5s36FIQic8H_U6fHHE-bnYYgLgbRAvKoD_EnOz70YIQQvBQdjxVK-uSPDUGbHpZxm4R7DUb2mH_jHvzmurB561DbUBXeIcGr2P6lGDkEJXpmk9pfYWqYw3LYxK6zSwJBcx1b9FYNtxld-4R5YmJC2vxIZpxLsk6PXBKI44mbXD1C4U" alt=""><figcaption><p>Example of building facades</p></figcaption></figure>

## Basic Parameters

<div align="left"><figure><img src="https://lh6.googleusercontent.com/b94NNEivroNDaSIxJJTA2lPzu4N6LnBldlXN48fGOpNzekpTj2TGabjz-UhYTEdgHjB4AsfIGlAS8KcHUXJefxJ_0STl_QDGx4Dz68O3ZGGdjAvGb5KeOka6qslJYSsO1sxOTzj5cvwOCMYObFkgxXq_TR5m0Y17KcVad543YToXO96AoF8usTRV0bPj" alt=""><figcaption></figcaption></figure></div>

The building type parameter determines which modular pieces will be used for the entire building and its features. This parameter should be set before generation.

<figure><img src="https://2314585985-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FB9CZin4WWsXZRIgGnqEV%2Fuploads%2FMD10aCUBQ7YdTpUKSA2H%2FBuildingsType.jpg?alt=media&#x26;token=e280c66a-0862-40c9-808a-1733ec7e065f" alt=""><figcaption></figcaption></figure>

The “Height Floors” determines the height in meters of the upper floors:

<figure><img src="https://2314585985-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FB9CZin4WWsXZRIgGnqEV%2Fuploads%2FaD9H1h7ftUQxLBTldRgC%2FHeightFloors.jpg?alt=media&#x26;token=e0e355fb-0930-4b82-b81a-6a90dd04723f" alt=""><figcaption></figcaption></figure>

You should regenerate the building to apply the correct height. Example of Height Floors 3m-3.3m:

<figure><img src="https://lh3.googleusercontent.com/N_CEZ8wz53WtSSa24lVa23HCG-7QuPiqOoeFMgNOoIFtumoV_W748drUF7Bq9cwodKCsYFLrlwjKDi6_v8r06FAbCo8O24Xbqmpkuz054wIIM-fUbToujtmWpxt3Eu69CG4FzI4OBrg7G9FkieAYX7xpJF-ZU7ZhUCnwcnySj_cohZKWc0545TNYU85y" alt=""><figcaption></figcaption></figure>

**Building Rules Style**

You can set “BuildingRulesStyle” to determine which Building Rules Style will be used.

For example, you can have only the buildings for the downtown area in the "BuildingStyle 1" and buildings for the suburb area in the "BuildingStyle 2", etc.

Downtown buildings (Building Rules Style=1) vs Suburbs buildings (Building Rules Style=2)

<figure><img src="https://lh6.googleusercontent.com/nlSwoHKXP6xlLMiNnD1BezYL_uGqrCE-Ddq7Os5wxIxL8NzHtVfzYMRbIZwzkvaUeI7fVCIb4RM4L8ACu2QuosFgojPFI37krOKpgG3751bc9lhhAU4f6WXahe7eGX41JvlW6ncMLtcsfO705EO5QZr-21BWSHwDOZpn9uRvREBK-cmqxU-7fAarlU2Q" alt=""><figcaption></figcaption></figure>

## Materials Category

<div align="left"><figure><img src="https://lh6.googleusercontent.com/H4sUmiPMWzWEhFTfuE9_PEKvJF402PVHATZNR6gryn0cajOuFmaGHJcBjE86AGhtnyzjbuV2ghCVoZoMWgYeog7Vm4jihpUU0bnLMuhga-k9o0sZcy-DG402Z4wjYVldCa2XW4Jub3Ryeu56JVYtmRAexjzjJHuXdi7OqvxHQBATLnsqn_WJ8iECWBEs" alt=""><figcaption></figcaption></figure></div>

Each of these parameters changes a specific material type for each building.

Colors – Materials

* Yellow – Front pieces material
* Cyan – Back pieces material
* Orange – Ground Floor material
* Black – Windows’ frames
* Green – Ornaments material
* Grey – Concrete material
* Red – Window material (for Shop)
* White – Window material
* Blue – Air Conditioner material

<figure><img src="https://lh3.googleusercontent.com/HUrPzJqPwXpTppoOFdY_uA4WXavztJIf92exFe-j6kwbEJLsvnZrB5eY4lUw7tx17NzRjjwJ9HWKy_zRFFmi5-32BIp3wD4-hnljvusTsEd_vj3XVWkGrtWbd0JStBDup0pvDQflqkLrzFf9Z5EdujulnhXtCnno5AAFHyrzsVY5UvqBImBO-KXqVezd" alt=""><figcaption></figcaption></figure>

These parameters can be set after generation and the building will update in real time.

Example of changing the "Front" material parameter:

<figure><img src="https://lh5.googleusercontent.com/t8ZnjcLRbztcRxR64Q3e0n_JqCO0NvYyRE_aBWTPj5eprt58ZPa-4_YJYqlBjMHy6Tt2huiSjte6orkJHTbBgoG2pIepsR1uVc_Fsg6o7v5y1KnpJ5vAySBNy1MsiDbJJ-kQ7eX14F9w7TBiHGurfnbfYhljSDtCsGDhrJK1hC9WFb1hq0wWAkxQUgO-" alt=""><figcaption></figcaption></figure>

## Random Parameters

To completely change the style of the building, the user can use the "Random" Category.&#x20;

Select which settings you want to be enabled (below the “Randomize” checkbox), then when press “Generate” using the Construction Building Tool, the specific parameters will be randomized.

If you want to randomize only the materials after generation, you can press on the “Randomize Seed” checkbox when you have the “Materials” and/or “Custom Materials” true. (The “Enable Random” should be checked)

Random Category:

<div align="left"><figure><img src="https://lh3.googleusercontent.com/I4JSFpCBeETtVY2BT4pq04qZH4QwkDWty8o8hraCK96JU3oDk1viPFLYDLZM6ZIsVGDowAaQqbtDs1B_0NCmjUyqfB-ZQrVcSuF9ESyhlQYHnjvPnxfENCqxMBeCUOp_txonpNN785VEBef8Wu5c3aVDPn6JSlYpUWjyay923XikcrYhBZ8Pt8m5vzhb" alt=""><figcaption></figcaption></figure></div>

Example of random buildings (with preserved length/type:

<figure><img src="https://lh6.googleusercontent.com/ta_dJ21RlvDJEVQzSX112qyZ4dc9mZY40udA7m4s49Ahmz7ZbAEHjIDEyKjP0VdkmaUQbJP2ck8Q_N3uWazuwk4bwciGBFMPzZtDMjIoSb3TBgUPgsd48iZsBd4LHgF5snyQ7PI0S-Pwr_GZfVbbkAu8GPIyD0HGvZDwPn33j0vXjC2NrDMInv3x8oNl" alt=""><figcaption></figcaption></figure>

**Other**

![](https://lh4.googleusercontent.com/1BQdDXF3oS8Jmi1tmJbzJc8wDN2kVoWszGAfqtx2Kbl-IoZCr3MmGbe0Y957f3Wu0-63rlH9ayCQQZCcrdk0F3LKk-wXz593KC5S0bj2WoBsFzUXZydQhV_I-HIUHZGwJFfvWYlStMk3WeXKb_l_OUZ2kNABvQEQEoY0tUqDc7_7FReWF0HkRbVcfcbW)

If “Force Only One Length” is checked, the generated building will have the modular pieces with a length equal to “Force Only One Length Value”.

If “Force Only One Type” is checked, the generated building will have the modular pieces with the type equal to “Force Only One Type Value”.

Example of buildings:

<figure><img src="https://lh5.googleusercontent.com/EkbvQYjO5gkQX2u-lNFHO46cWCvpzvQ5AJvYt6CiAoERyIfLBcMvOzgO8F9l0avNRi_G2J82eYcvPi07_YU01BXIAhvfGf8_oTws1wTP1G0mcBwhsbveU_7J_3kYw4wa89XM9mpDdn2MdgdQDJEpe7niVYKXflFj6UnIO48ayFbwPnBXK0yy8nVQJe9H" alt=""><figcaption></figcaption></figure>

When the “Preview” is true, a low poly building will be created for better visualization. Also, when it’s true, the Modular Building Pieces of the building will be hidden. This will increase your performance in the editor’s viewport but don’t forget to disable it when you’ll start the play mode. Using this mode, you’ll be able to see in real-time the sections of the building and the facades type.

Example Front-Windows and Front-Alternative odd.&#x20;

<figure><img src="https://lh3.googleusercontent.com/I2b4ZLnWyAaQsAcMV8FX0WzPOSSAwpFx1taSfwyFzGg1IXVpc075xGuqDF4nSR62t3fYwWF5YHMhvyYdj2PtQ9GgGH00exooaZPlYtXmmI9MJIXxLhWjXWaK0GpdgBDwanUikzcd5QxanKggVj0GmPxpFt5xcw9qAoxH2IcWbkYCXTGzTE5JfoNrseNg" alt=""><figcaption><p>Preview vs Generated Building</p></figcaption></figure>

Example Back-Simple and Back-Alternative Even.&#x20;

<figure><img src="https://lh3.googleusercontent.com/eSWO2PHgWEbEu4Gl7Zll2LNTIsHn3yTkFTTpI73CCO-7nb2pYcijZ6iULBmHV5Qx_-mQkXlY_ZZERS5Gv9yhrx7PsIxPtoa5QXPffXdwk1T2lFUfDEWsq4xrA7kGRBufokmKKFwqPG69RrnRNo_0w0vSfb_TKoP9rQzxWKqwjkL0rFLn1pOubEYDl_CE" alt=""><figcaption><p>Preview vs Generated Building</p></figcaption></figure>

Example Back-Simple and Back-Alternative Even Occluded (Number of non-occluded floors=3).

<figure><img src="https://lh4.googleusercontent.com/M9yGT9mczT0KOTq9JzabbBWjIHX8Z4O3CulP73X0T6XsFvoNiYsyMetggtCzO4G0pawbapzId-JpU8u3DKyvE1XQiT9jDLUFtg4G-7tIO0ylW7G1UZEFpTuIEQ6fZFmZzBkEUNED4ctQoPMrBuXdrDfwYbVFSHhKgl6Dh57QeHSeLcdx7grOhR5GzKuo" alt=""><figcaption><p>Preview vs Generated Building</p></figcaption></figure>

Performance Mode can be activated from Building Construction Tool UI and turn all the buildings from the level to preview mode to increase the performance in editor:

<figure><img src="https://lh6.googleusercontent.com/8fobsWdlPueM_SEc-1aPq4p2y19SEFytsTEhUggCIdCfSbDpDw6HVnXtJbsZV4CKhDa8gCbXHEJMBwdV-Yi6Pv4y55u9GRQIgGNj_Nhyg5tSaAqSN6EVgFteEUhiIBWxUAjEJAjqHCi1Ulld3t5kQHctMsq-1Hy0LGdRA5SaK9oS1jrxduwjlCFcispA" alt=""><figcaption></figcaption></figure>

## Preserve Length and Type

![](https://lh5.googleusercontent.com/0oETlCuRkuMeKb7yEy3ZeSmbnsssvRiVcsyCDXuqDlEO4Wmf8IcnSRivcN3pXrYzYgrfaMZGqKte9TyAX0leAl1EYc_svUH8xjdv3e3C4YyNyD1ZMb356zEvKzSQgg3Tsj01Q8XX40JrsZw_V4Bs5TDAB3blg2IJ8tRRUBRGyYyyaLwn39eUWHBRlHXn)

If the “Preserve length/type” is true, the length and type of the pieces will be preserved after the regeneration of the building. It will not work properly if you changed the dimensions/shape or the type of the building.

<figure><img src="https://lh6.googleusercontent.com/MCAh7R-KYgBQh4DUh4jPWyMzRB06BSzwxe3qxp2n_Hb3Gj2H083Y2_86sepMpVWtu5upj36yxulcbBZOIFs0-5QLquo25RiiFEa7ZRKVvRJ0KAe5jiB-h5aDNYjEGEbA8P_yHIeUFgwJ4IHdHUJqyie2fDKLgPf4-Fii9N_RYTQqW55o0XQpxxzrN6X3" alt=""><figcaption></figcaption></figure>

## Selection of modular floors in the generated buildings

The Building Construction Tool (Utility Widget) has 5 buttons for selecting specific modular pieces from already generated buildings. They make it easy to edit specific pieces after generation. To use these buttons, you must first select a modular piece depending on what you want to select.

<figure><img src="https://lh5.googleusercontent.com/A4Id73e7OR9GrtJPQ00nd1_OSTS5nj3PTAUO4NDeq1gSiy5Go7GpRKzbuf35OfHGHEXT594diYp1oQJKd_ZzYJzWWiNiVzemck-Hab1rwtaq1GrvoykwIaikf87W-eLFf483Xn_anqJBS4eIPrwsW0o-Kz4q2lUZP5ZpaO8AwtIciuRsY0nYuzImA_A6" alt=""><figcaption></figcaption></figure>

<div align="left"><figure><img src="https://lh5.googleusercontent.com/Pkfli79pmTyTAZ_sxTKO3UJJj8DBVhG82XOnp0sQpEqBakgPz_PaPj-Br4YRjX-QHdATsC9DSqheVHDaPhyCEb0GEsADsVmr1dw11DfOnac55HHnYSjAT0F9PvnQbiRRDE4WFMBItkVT6go3aSQWqPDQpxRk5JMcscMrIqb-x03TAII1meNqmivM0qBW" alt=""><figcaption></figcaption></figure></div>

Buttons:

1. Building - selects all the modular pieces of the building and the rooftop
2. Floor - selects the floor of the selected modular piece
3. Column - selects the column of the selected modular piece (above and under that piece)
4. All Floors - selects all modular pieces on the upper floors (all modular pieces except the ground floor pieces)
5. Ground Floor - selects all modular pieces from the ground floor

<br>
