navmeshpath serialization via reflection for network RTS game
Hey, is there a way to serialize NavMeshPath
so it can be calculated on a server and then be send to its clients? We tried it with C# reflection but NavMeshPath seems to have an intptr which we weren't able to serialize. The Problem is, that NavMeshAgents
don't walk the same paths on different game instances in our network RTS Game, in my opinion it's because of the Obstacle Avoidance. Or is there a better way to synchronize servers Units-Position with its clients? Our actual approach is to send Units-Position each second but this leads to stuttering on the client side because the NavMeshAgents
don't use the same paths as the agents on the server and the agents try to follow there paths ^^
Hi @Frigerius, have you ever found a way to serialize Nav$$anonymous$$eshPaths?
No worries... Time to dismantle my "path generator". I should have done a little more research before all that coding :D Back to drawing board. Good luck to you and your $$anonymous$$m!
Your answer
Follow this Question
Related Questions
Networked movement using navmesh agent 0 Answers
Netcode - Exception: Type Unity.Collections.FixedString32Bytes is not serializable 0 Answers
Handling serialization of Transform (Unity / Mirror networking) 0 Answers
How to serialize a List of ContentPacks (from Morph3D) in Photon Unity Networking? 0 Answers