Serializing multidimensional array

I have a class with the following properties:

pubic int testInt;
public List<List> mLevelDataRows;

And I am trying to serialize the object in custom Editor class.

I just realized that the testInt works fine, but the mLevelDataRows data is reset when the application is run.
I think the reason is that in order to add an element to the double array I do the following:

void AddRow()
{
List columns = new List(10);

//Some test data to make sure somethign is there.
columns.Add(21);
columns.Add(22);
columns.Add(14);

mLevelDataRows.Add( columns );

}

So the fact that I am instanciating a new list of columns I think is the problem. But how can I do this with out instanciating a list myself?
What I need to know is where does mLevelDataRows get instanciated. My guess now is that this happens when calling .Add on it ? Is that possible?

I am stuck help please :frowning:

can’t serialize multi dimensional arrays. Only single ones. Otherwise, it can serialize a list of class containing data, and this is effective. So find a better data pattern or dump it inside a class.