Closed Penca53 closed 3 months ago
Have you tried placing [IncludeSerialization] above your Data class?
That appears to make it work
The attribute fixes this issue. It only fails to create a serializer with nested structs / classes. Would it be possible to support that as well?
That would need to be a suggestion, though it will have a low priority for a bit. Marking as resolved.
Important
If General, Description, and Replication are not completed the issue will be closed immediately.
General Unity version: 2022.3 Fish-Networking version: 4.3.8 Discord link: https://discord.com/channels/424284635074134018/1034477094731784302/1273031045561847839
Description Automatic serializer generation is not working when there is a copy constructor in a class (or struct).
Replication The following snippet works fine, as the automatic serializer is correctly implemented.
But as soon as you add a copy constructor, the serializer won't be automatically implemented, returning the error "Write method not found for Data. Use a supported type or create a custom serializer."
Expected behavior The code generator should automatically implement the serializer.