# How to make different Rule Tiles interact with each other?

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 (Wood, Stone, Metal). How would I make different types of walls still affect each other?

Imagine that 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?

• is it possible to use inheritance. So you can have a base class Wall then the Wood, Stone, Metal etc can extend that class. Then you just check if it is type Wall – I_Keep_Trying Jun 8 at 15:43
• Perhaps but this seems like it would require coding an entire system. Unity RuleTiles already do this, I'm just wondering if it's possible to extend that functionality to connect different RuleTiles. – franticabyss Jun 8 at 15:56