Rule tile with tiles from different tilemaps

Hello. I have a problem while using tilemaps. I have a Rule Tile and it works well, the thing is that I need my Rule Tile to work with tiles from different Tilemaps

I’m making a dungeon generator and every room is a prefab from a Tilemap. As every room is connected I want the Rule Tile to make coherent tiles but as both rooms are two different Tilemaps, their tiles doesn’t follow the Rule Tile.

I tried to create a main Tilemap and to translate all the tiles into that main Tilemap but I wasn’t able to achieve it. And I also thought in a Rule Tile that can work with tiles from different tiles but it was the same story.

If more information is needed tell me.
Thanks.

In your situation I think you can just add an invisible tile to each connecting room such that the invisible tile of tilemap1 overlaps with a regular tile of tilemap2.

Your code most likely already knows the tiles from different tilemaps that are next to each other, so this should be a simple addition

By invisible tile I mean a tile with no sprite(you may need to use a transparent sprite if unity automatically deletes that tile)

1 Like