Tasharen Entertainment Forum
Support => TNet 3 Support => Topic started by: raptorx81 on November 22, 2017, 11:14:41 PM
-
Our project uses a lot of object[] arrays to hold a variety of different data. We just finished our upgrade from 3.0.9 to 3.1.0 and along the way we ran into a slight problem. The new "UnityTools.GetType" method doesn't detect object arrays like the old "UnityTools.FindType" method did in the previous version.
In our case we simply added :
else if (name
== "System.Object[]") type
= typeof(object[]);
On line 256 in TNSerializer.cs
Aren, just wanted to give you a heads up for a future fix and in case anyone else runs into this problem.
Cheers!
-
This... I'm not sure what you're doing there, but trying to serialize an array of objects doesn't seem like a good idea. Each object can be a different type, with its own serialization. It's asking for trouble.
You adding System.Object[] means something was saved as "System.Object[]" -- text form of it. I'm surprised that worked at all, to be honest.