NetworkBehavior OnSerialize fail for Component XXXX
I write a NetworkBehvior script with a SyncList field. Everything works well before I add other non-sync fields onto script. After that, "OnSerialize fail for XXXXComponent " error message keep popping out
Document say:
add [System.NotSerialzable] to field don't wanna get sync but it doesn't working.
provide serialize read/write method for component by using extension method but read/write method is not get called.
override OnSerialize() and OnDeserialize() I haven't really try since I hope first 2 way could solve the problem
Does anyone know how to let serialize read/write method for component get called Or I have to override OnSerialize() and OnDeserialize() ?
It help me a lot if anyone could help. Thanks!
Your answer
Follow this Question
Related Questions
Remote clients can't spawn objects - Unity mirror networking 1 Answer
What is the most efficient way to host multiple games on different ports? 1 Answer
I'm getting an error: "AudioClip can't be deserialized because it has no default constructor" 1 Answer
How to make Server Side Bots in Mirror? 1 Answer
Unity Mirror networking take damage 0 Answers