Creating a 2D array of instanced GameObjects with Find()

Hey!
I am trying to create a 2D array from instanced objects.
The objects are named in accordance to: "Tile " + x + “.” + y

For now I have made this loop to search through the 64 current instanced objects, but I get null references when trying to execute. mapClone is declared thus, and searched like so:

GameObject[,] mapClone = new GameObject[8,8];

for (int i = 0; i < mapSize; i++) {
		for (int j = 0; j < mapSize; j++) {
			mapClone [i, j] = GameObject.Find ("Tile " + i + "." + j);
		}
	}

Anyone have any idea if this is possible, or is my C# just wrong?

Have you instantiated the gameobjects? It looks like you have declared the gameObjects but you have not actually created them in the scene. If your objects already exist, then make the variable for them public and explicitly define what objects are what by slotting them into the public slots. If your object can’t be dragged and dropped in due to the way your flow works, then make sure to check to see if the found object is NULL and make sure to check if it is ActiveAndEnabled in the hierarchy, this will stop you getting null references using the find command. Also don’t use game object.find but instead use get component as it’s easier to control what it returns