Deserialize an outside object in Unity
I wrote a c# program in visual Studio that allows me to easily create a tile map and then store it. I use the BinaryFormatter to serialize the object and store it in a file.
In Unity i have an equivalent object to deserialize to. However in Unity when I try to deserialize my object, Unity gives me the following error: "SerializationError:Unable to find assembly..."
i have been googling and trying things for hours to no avail. I have tried writing my own SerializationBinder as suggested by these: https://www.codeproject.com/Tips/1101106/%2FTips%2F1101106%2FHow-to-Serialize-Across-Assemblies-with-the-Binary
and
Ive tried a multitude of different ways to override the BindToType and BindToName methods, both of which should be doing something. But no matter what I try, theres always that assembly error. I tried stripping the assembly name on serialization and using the current assembly name when deserializing. I have tried manually inputting the assembly name in the Binder class to try force it find the assembly. I tried setting the BinaryFormatter Assembly Format to simple. No luck at all.
Has anyone had any luck deserializing outside objects??
Your answer
![](https://koobas.hobune.stream/wayback/20220612190215im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Recursive serialization not supported, you can't dereference a PPtr while loading. 1 Answer
Null Exception while serialize json string into txt file 0 Answers
How can I separate serializable class into its own file? 1 Answer
How to save a two-dimensional array, as part of the variable inspector? 0 Answers
Autocomplete in Visual Studio Code 3 Answers