ObjectSerializer - easily store/load window settings

Hi

We are introducing new useful script - ObjectSerializer.

This script which may be useful for tool or plugin developers who needs to store settings.

You can easily save or load all public non-static fields and properties from any Unity object including ones you created.

You don’t need to worry about vectors, array, matrices, as well as custom structures and classes (even arrays of them). They are still handled correctly.

This tool can also store references to scene objects, assets, assets inside prefabs.

More informations can be found here
http://unitydevs.com/item/objectserializer/

Feel free to ask questions both here and to our email - unitydevs@gmail.com

I hope you will find it useful!

I just use the compiled dll of this:

http://code.google.com/p/xstream-dot-net/

I must say that DLL impressed me at the beginning, but longer test showed that it’s not as good at it seemed.

It shouldn’t have any problems with objects such as instances of structures, classes, basic types, arrays, but it has problem with references.

I tried to serialize reference both to asset and scene object, and deserialization worked, but not for long. When I tested it after restarting unity Xstream simply crashed the whole app.

Second thing is that your code cannot serialize and deserialize Unity classes such as EditorWindow, while my code is intended to that (and usually is simpler to use).