Guids are not serializable
Trying to serialize a component that contains a Guid using EntitySerializer will fail to serialize. Even if the field is marked as nonserializable(!), the entire entity will fail to serialize. I dont know of any technical reasons why Guids shouldnt be serializable, since they can convert to and from strings just fine, so this functionality should probably just be added.
nonserializable(!)
[NonSerializable] isn't used by the entity serializer. It should ignore all fields without [DataField]... are you putting DataField on it?
Its a data field on a component, so yes
Its a data field on a component, so yes
So, yes. You asked for it to be serialized. Why are you surprised that a type which cannot be serialized throws an error if you ask for it to be serialized?
Im saying that Guids should be able to be serialized...
Im saying that Guids should be able to be serialized...
I was explaining why you were seeing the behavior with NonSerializable. If I thought this issue wasn't worth adding I'd have closed it by now.