Sync [SyncVar] and SyncListStruct only when you want it

I’m trying to get my InventoryDatabase to sync from server to client, but it only needs to do it once.

So right now I have the network send rate set to once every 10 seconds, but really I would like it to only sync once when the client joins, and only to that client. Is there a way to do that?

Edit: The SyncListStruct also isn’t syncing properly, it gets the Count right, but every value is null.

Thanks

You can use hook for SyncVar and in hook function set variable only when client wants to (in your case once).

1 Like