Closed neronmoon closed 4 years ago
That's doest work
To make it works you should just need to add a reference to the correct package to enable the SerializableAttribute for netstandard 1.1. Or maybe you mean that even with the attribute it does not behave as expected in unity? Anyway while it doesn't hurt this decoration is probably not correct, as even if you serialize an Entity, its context (components) is not saved, and can even lead to error (deserializing an Entity from a World which does not exist). That's why the ISerializer interface is provided to handle the serialization correctly.
In Unity structures and classes should be serializable in order to be shown in inspector