I have populated an array through the unity inspector by dragging and dropping the items into it. They show up in inside the array in the inspector, but when I try to reference an object I receive a NullReferenceException as if the array is empty.
Unity inspector with array populated with objects named 1 - 20: https://i.stack.imgur.com/kMvva.jpg
Reference:
private void PopulateHousesandRooms()
{
for (int i = 0; i < 20; i++)
{
HousesAndRooms[1][1][i] = House1Room1Objects[i];
Error: http://imgur.com/k1cNtDH
Where am I going wrong here? Everything seems fine to me. I hope I'm not wasting your time with a stupid mistake.
Edit: I know what a NullReferenceException is, I'm not asking that. This shouldn't throw a Null Reference should it? There IS an object there. Is the problem with the fact I populated it through the inspector?