I'm generating a hex grid on initialization, where a cell is given a different texture based on it's position. A cell is a plane with a hex texture that has transparent cutoffs. Cells with different textures are different prefabs, created with the Instantiate function.
This worked fine for creating a grid, but now I need each cell to know which texture(or which prefab) the closest cells are. For example, the "J" key on a standard qwerty keyboard would have to know that it is surrounded by H, U, I, K, M, and N, plus the directions those keyes are in. My current ideas are to pass a variable to script of each cell through instantiate(is this possible?) or to determine what texture is displayed at a set of coordinates(I believe this can be done through a helper camera).
I could also re-do the system for creating the grid to either rename the prefab instances upon creation(is this possible?) or to create the grid with only one prefab that changes texture after instantiate based on a variable(or some other identifier).
I am also open to any other ideas I haven't thought due to unfamiliarity with unity.