Hey guys, Starting to finally get my head around serialization. Quick question. Can I serialize a List of Arrays? e.g. I have this under my class... Code (csharp): public List<byte[]> pattern = new List<byte[]>(); and I create a few new lists of bytes under condition. Whenever I edit my scripts though the List is cleared. So I'm assuming either lists of arrays aren't serialized or Lists in general. Are Arrays of Arrays serializable because I can change my code to suit. Cheers.
Never mind, I worked it out! Had me stumped for days and a little bit of extra research is all it needs sometimes For those interested I created a serialized class of the byte arrays and then I add the class to the list instead of an unserialized array which is what I was doing before. Code (csharp): [Serializable] public class newPattern { public byte[] patterByteArray; } [SerializeField] public List<newPattern> pattern = new List<newPattern>();