Closed lucasmontec closed 1 year ago
The issue persists even if you remove the serialized class, use the normal NetworkBehavior and then return to the serialized class. It seems unity is using the same serialization thus causing the issue to return after you change back to SerializedNetworkBehavior.
This issue is stale because it has been open 120 days with no activity. Remove stale label or comment or this will be closed in 14 days.
Describe the bug When using Odin serialization together with the network behavior, the Odin serializer is causing the method RPC names to be serialized, or saved. If you change the method signature or just the name, the changes are not reflected on builds or on the editor. The RemoteCallCollection is probably being serialized
To Reproduce Steps to reproduce the behavior:
Create a SerializedNetworkBehavior class to implement Odin serialization like so:
Expected behavior The remote method collection should be created again and the method should be there.
Desktop (please complete the following information):
Additional context This problem seems rare but very hard to debug. Since this deals with serialization, other serializers could cause the same issue. From what I have gathered, it is Odin's fault here, still the constructor usage to full that remote call collection, and the absence of a NonSerialized attribute, both contribute to this issue.