msgpack / msgpack-cli

MessagePack implementation for Common Language Infrastructure / msgpack.org[C#]
http://msgpack.org
Apache License 2.0
834 stars 175 forks source link

Request to support UnpackTo in ReflectionObjectMessagePackSerializer #218

Open 7ujian opened 7 years ago

7ujian commented 7 years ago

Hello,

I'm using msgpack-cli to serialize my game scene in Unity. Since in Unity "new Monobehaviour()" is not allowed, "UnpackTo" is only way to unserialize data to a component. But it seems ReflectionObjectMessagePackSerializer doesn't support UnpackTo. Do you consider adding support for this in future?

Thank you!

yfakariya commented 7 years ago

Thank you for great suggestion and use case! It is interesting use case but it may takes long time to solve because UnpackTo is designed to support "Add-based" deserialization for collections.