Matrix_Map
[System.Serializable]
public struct Matrix_Map<Element>
{
public Matrix_Row<Element>[] Matrix;
}
Matrix_Row
using UnityEngine;
[System.Serializable]
public struct Matrix_Row<Element>
{
[SerializeField]
public Element[] Elements;
[HideInInspector]
public int Length
{
get { return Elements.Length; }
private set {; }
}
}
I have this specific architecture for a system. The problem is that the Matrix_Row script's Elements property is not serialized in the inspector. I have a reason to believe that it is with the fact that the array is of a generic type.
What would be your guys recommended way too solve this, and also, seeing as such serialization issues seem to come up a lot of time(for example the lack of serialization for N-dimensional arrays, which is the reason of this slight inconvenient architecture in the first place), I wonder if there is a way too alter/add to engine/editor code to solve such problems. Thanks in advance.