Replies: 1 comment 8 replies
-
Hi @AymanDev 👋 I hope you are well! The The Unity SDK needs to assign the types to their respective class definitions before decoding, and I'm afraid the We don't have tests for this specific scenario... Could you please share a minimal way to reproduce this issue so I can investigate? Thank you! |
Beta Was this translation helpful? Give feedback.
-
Not sure where to ask or create issue on this one.
I have problem with some schemas using inheritance. I debugged this for awhile and found out that on C# SDK i receive this fields
As you can see there are few repeating ones as i assume from inheritance. By field names I found what scheme it was.
So for some reason receiving fields does not represent any type and it result in null in C# sdk and will print out schema mismatch https://github.com/colyseus/colyseus-unity-sdk/blob/master/Assets/Colyseus/Runtime/Colyseus/Serializer/SchemaSerializer.cs#L80
All this happening at handshake moment and no state is updated, it only initialized as room been created
I tried checking generated classes from schema-codegen and they are matching in inherited types, name and order of fields
I tried adding
@entity
decorator as this entities a stored in state in MapSchema which resolved nothing.I'm kinda out of ideas what is i'm doing wrong here...
Beta Was this translation helpful? Give feedback.
All reactions