# Using Tile Overrides

Tile Overrides are a great way to mask or replace tiles for mixing different tile presets or even objects.

Here's a screenshot from the Stylized Island sample:

<div align="left"><figure><img src="https://2133013324-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfgGGWDc5VbrbZt1JQsfN%2Fuploads%2FWkDQcX8DzLFSYe4e3Wvr%2FtileOverrideExample.png?alt=media&#x26;token=a7ae7ddb-1b65-4cfb-b326-3dce731ad606" alt="" width="535"><figcaption></figcaption></figure></div>

(1) You can see that the river layer has one override with an assigned waterfall blueprint layer. By using an empty tile preset (a tile preset with no prefabs assigned) river tiles located on the same position as the waterfall blueprint layer cells get simply masked out.

(2) Here you see an object build layer which simply uses the waterfall blueprint layer to place the waterfall object.&#x20;

## Required Neighbour Count

When Dual Grid is enabled, an additional option called **Required Neighbour Count** appears. This value defines how many neighboring blueprint cells are needed for a tile to be replaced by the override preset. Check the example images below for a better understanding of this concept.\
Note: This setting only applies when Dual Grid is enabled. Otherwise, the override condition defaults to a 1-to-1 replacement.

<div align="left"><figure><img src="https://2133013324-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfgGGWDc5VbrbZt1JQsfN%2Fuploads%2Fp9JO3B5obikgSiMyuGed%2FDualGrid.png?alt=media&#x26;token=928c0eef-02c4-40cb-843b-fe0cb1203b96" alt="" width="452"><figcaption></figcaption></figure></div>

Dual Grid offsets the standard grid by half a cell, causing instantiated tiles to be placed with a slight offset. This approach significantly simplifies tile organization, requiring only five tile types. Artistically, it also provides more "space," allowing tiles to be fully round or more visually distinct.

Read more about dual and standard grid here:

{% content-ref url="dual-and-standard-grid" %}
[dual-and-standard-grid](https://giantgrey.gitbook.io/tileworldcreator-v4-documentation/dual-and-standard-grid)
{% endcontent-ref %}

### Neighbour Count = 1

In this example, the **Neighbour Count** is set to 1. When two cells from the override blueprint layer (shown in yellow) are placed as in the image, six tiles (shown in violet) are replaced—because each of them has at least one neighboring cell.

<div align="left"><figure><img src="https://2133013324-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfgGGWDc5VbrbZt1JQsfN%2Fuploads%2FTrE0lOISqPCgCTgrU2hD%2FOverrideOneNeighbour.png?alt=media&#x26;token=e2afd812-9fe2-4f8d-81b1-ea0eed678ae0" alt="" width="452"><figcaption></figcaption></figure></div>

### Neighbour Count = 2

When the **Neighbour Count** is set to 2, only two tiles (violet) will be replaced, as only those have two neighboring cells (yellow).

<div align="left"><figure><img src="https://2133013324-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfgGGWDc5VbrbZt1JQsfN%2Fuploads%2Fuv52TsvJBzoNvgyfumaV%2FOverrideTwoNeighbours.png?alt=media&#x26;token=a5d4182d-792e-4a5b-9e33-32efba4bbc76" alt="" width="452"><figcaption></figcaption></figure></div>
