Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Better Rule Tiles for Unity

Creating tilesets was never easier than this! · By Vinark117

Feature Request - two layer placement

A topic by feCreation created Nov 22, 2023 Views: 137 Replies: 2
Viewing posts 1 to 3

Hello,

i want to ask if its possible to implement something like, if Tile A is placed at layer 1, then automatically Tile B is placed at same position but in layer 2. (like a housewall out of two tiles)

Thx

Developer

It is possible, but not within the Better Rule Tile Editor. To place tiles on a tilemap you need a reference to the tilemap object you want to place it on, but tiles are scriptableobjects, which can't store scene objects. You could make the tool inside the scene, but it can't be built in to the editor.

I was thinking of a function like "OnTilemapPlacement" that is executed no matter which tilemap is used, as soon as the desired tile is placed, the 2nd tile from a variable that was stored within the first one is automatically placed 1 layer above it.