- Home /
Environment API SetEnvironmentVariable change in Unity 5.3.5f1
Hello, I recently upgraded to Unity 5.3.5f1 and I notice the a line of code that previously compiled no longer does:
System.Environment.SetEnvironmentVariable("MONO_REFLECTION_SERIALIZER", "yes")
My autocomplete seems to agree that this function no longer exists. Was there a change to the Mono version in 5.3.5f1 that could have removed this function?
The call was to enable serialization of objects to binary but perhaps it is un-necessary?
Answer by jawadmehmood56 · Dec 04, 2017 at 09:50 AM
I am using MonoDevelop version 5.9.6 with Unity version 5.6.2f1, this statement "Environment.SetEnvironmentVariable("MONO_REFLECTION_SERIALIZER", "yes");" just worked fine for me, I had to use it for class "BinaryFormatter" to avoid an exception.
Your answer
Follow this Question
Related Questions
Get current username 3 Answers
problem with serialization(?) 0 Answers
Problem whith save system,Problem whith save code 0 Answers
Serialize data to XML File, then send via email as attachment on iOS. 0 Answers