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:

enter image description here

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?

  • \$\begingroup\$ 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 \$\endgroup\$ – I_Keep_Trying Jun 8 at 15:43
  • \$\begingroup\$ 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. \$\endgroup\$ – franticabyss Jun 8 at 15:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.