I am using Unity's RuleTiles to automatically change sprites of adjacent similar blocks.
For example, when a
Dirt tile notices there are two
Dirt tiles to the left and the right of it, it will change texture, like this:
I would also like to do this with walls. However, I plan to have many types of walls (
Metal). How would I make different types of walls still affect each other?
Dirt is now a
Wood wall. If I place a
Stone wall to the left, and a
Metal wall to the right, I'd still like for it to apply a texture change.
Is it possible to make different types of rule tiles interact with each other?
Metaletc can extend that class. Then you just check if it is type