- Home /
Networking: how to sync complex objects
Hi, I'm new with the Networking classes, but I'm starting to understand how the syncing between client and server works. You have to extend NetworkBehaviour and add [SyncVar] before each synced property.
However I don't understand how to do the following:
I have a MissionsManager class, which extends Singleton, so it can't extend NetworkBehaviour. Also my MissionsManager has a List, and my understanding is that you can only use SyncVar on basic types, which List is not.
I tried to add a Network Identity to my MissionsManager, but that didn't change anything. From what I understand it's only meant for objects that are spawned. But my MissionsManager is not spawned, it's just there.
How do you sync those kind of things? Is the networking api at all meant for this?
Your answer
![](https://koobas.hobune.stream/wayback/20220612052547im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
A node in a childnode? 1 Answer
How to Sync List 1 Answer
SyncVar on objects in a list 1 Answer
Why Does Adding to My SyncListStruct Break SyncVar? 0 Answers
SyncList TO 3 Answers