How to check if color blocks are next to each other in grid?

I’m working on a 2D grid game and I’m curious on how to check what “cube color” is in a grid slot and if it’s touching another cube of the same color next to that slot?

I’m trying to see if four of the same colors are connected side by side with in the grid.

I should mention that I can’t use collision or anything that uses a collider.

Could you specify what is the purpose of the functionality you are describing? Maybe you are you trying to make a match 3 (or match 4, in your case) type of game?

yes, match 3 would work. I just looked up a tutorial and found what I needed. Thank you.

Hey, I was just looking for something similar; which tutorial did you find? :slight_smile:

Hello, this should be a good place to start:
https://www.raywenderlich.com/673-how-to-make-a-match-3-game-in-unity