After trying to port my existing project to the 5.3.0f2 beta I got the same error as posted by brianturner.
Investigations found that if you have >= 16 syncvars (and possibly any networking tag e.g. [SyncVar], [Command], [ClientRpc]) you get this error. The recursion depth error will specify the type of whatever that sixteenth thing was that was trying to be serialized.
I’ve attached a script that is just a NetworkBehaviour with 16 public [SynchVars] in it. Add it to your project and you’ll get the above error. Comment out any SyncVar tag and it’ll compile.
Hope this helps,
Jas
@seanr - please see bug in the Issue Tracker: Case 749253
I removed all SyncVar, Command, and ClientRpc tags from several of my classes and the error disappeared. Removing SyncVars from my classes was not enough.
Although the error is gone, obviously the project’s networking won’t work.
I’m getting an error like this in a class with no SyncVars. I commented out the 4 rpc’s it complains about, and the error goes away. I then uncommented one of the rpcs and commented out its method body, still get the error. If I comment out the 2 integer parameters, the error goes away.